本文整理汇总了Java中com.apple.internal.jobjc.generator.ClassGenerator类的典型用法代码示例。如果您正苦于以下问题:Java ClassGenerator类的具体用法?Java ClassGenerator怎么用?Java ClassGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ClassGenerator类属于com.apple.internal.jobjc.generator包,在下文中一共展示了ClassGenerator类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Framework
import com.apple.internal.jobjc.generator.ClassGenerator; //导入依赖的package包/类
public Framework(final String name, final File bsFile) {
super(name, null);
try {
final File pathf = bsFile.getCanonicalFile().getParentFile().getParentFile().getParentFile();
path = pathf.getParentFile().getParentFile().getCanonicalPath();
} catch (IOException x) {
throw new RuntimeException(x);
}
binaries = findBinaries(path, name);
pkg = ClassGenerator.JOBJC_PACKAGE + "." + name.toLowerCase();
try {
rootNode = (Node)XPATH.evaluate("signatures", new InputSource(bsFile.getAbsolutePath()), XPathConstants.NODE);
} catch (final XPathExpressionException e) { throw new RuntimeException(e); }
protocols = new ArrayList<Protocol>();
categories = new ArrayList<Category>();
}
示例2: JObjCClassClassFile
import com.apple.internal.jobjc.generator.ClassGenerator; //导入依赖的package包/类
public JObjCClassClassFile(final Clazz clazz) {
super(clazz, clazz.name + "Class", clazz.superClass != null ? clazz.superClass.getFullPath() + "Class" : ClassGenerator.JOBJC_PACKAGE + ".NSClass<" + clazz.name + ">");
}
示例3: MixedPrimitiveCoderClassFile
import com.apple.internal.jobjc.generator.ClassGenerator; //导入依赖的package包/类
public MixedPrimitiveCoderClassFile(final Collection<MixedEncodingDescriptor> coderDescs) {
super(ClassGenerator.JOBJC_PACKAGE, MULTI_CODER_CLASSNAME, "java.lang.Object");
this.coderDescs = coderDescs;
}
示例4: RootJObjCClass
import com.apple.internal.jobjc.generator.ClassGenerator; //导入依赖的package包/类
public RootJObjCClass(final List<Framework> frameworks) {
super(ClassGenerator.JOBJC_PACKAGE, JOBJC_CLASSNAME, "java.lang.Object");
this.frameworks = frameworks;
}