本文整理汇总了Java中org.rococoa.ObjCClass类的典型用法代码示例。如果您正苦于以下问题:Java ObjCClass类的具体用法?Java ObjCClass怎么用?Java ObjCClass使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ObjCClass类属于org.rococoa包,在下文中一共展示了ObjCClass类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findStructRef
import org.rococoa.ObjCClass; //导入依赖的package包/类
public SimpleTypeRef findStructRef(Struct s, Identifier libraryClassName) {
if (s == null) {
return null;
}
switch (s.getType()) {
case ObjCClass:
case ObjCProtocol:
return typeRef(result.objectiveCGenerator.getFullClassName(s));
default:
return findStructRef(s, result.declarationsConverter.getActualTaggedTypeName(s), libraryClassName);
}
}
示例2: generateObjectiveCClasses
import org.rococoa.ObjCClass; //导入依赖的package包/类
public void generateObjectiveCClasses() throws IOException {
for (Struct in : Result.getMap(result.classes, Type.ObjCClass).values()) {
outputObjectiveCClass(in);
}
for (Struct protocol : Result.getMap(result.classes, Type.ObjCProtocol).values()) {
for (String parent : getForcedProtocolParents(String.valueOf(protocol.getTag()))) {
protocol.addParent(ident(parent));
}
outputObjectiveCClass(protocol);
}
}
示例3: setClass_forClassName
import org.rococoa.ObjCClass; //导入依赖的package包/类
/**
* Original signature : <code>+(void)setClass:(Class) forClassName:(String*)</code><br>
* <i>native declaration : NSKeyedArchiver.h:104</i>
*/
public abstract void setClass_forClassName(ObjCClass cls, String codedName);
示例4: classForClassName
import org.rococoa.ObjCClass; //导入依赖的package包/类
/**
* Original signature : <code>+(Class)classForClassName:(String*)</code><br>
* <i>native declaration : NSKeyedArchiver.h:109</i>
*/
public static ObjCClass classForClassName(String codedName) {
return CLASS.classForClassName(codedName);
}