本文整理汇总了Java中com.apple.internal.jobjc.generator.model.Clazz类的典型用法代码示例。如果您正苦于以下问题:Java Clazz类的具体用法?Java Clazz怎么用?Java Clazz使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Clazz类属于com.apple.internal.jobjc.generator.model包,在下文中一共展示了Clazz类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getSuperClassFor
import com.apple.internal.jobjc.generator.model.Clazz; //导入依赖的package包/类
public static Clazz getSuperClassFor(final String className, final MacOSXFramework nativeFramework, final Map<String, Clazz> allClasses) throws Throwable {
final NSClass<ID> nativeClass = new NSClass<ID>(className, nativeFramework.getRuntime());
final NSClass<? extends ID> nativeSuperClass = UnsafeRuntimeAccess.getSuperClass(nativeClass);
final String superClassName = UnsafeRuntimeAccess.getClassNameFor(nativeSuperClass);
if ("nil".equals(superClassName)) return null;
final Clazz superClazz = allClasses.get(superClassName);
if (superClazz != null) return superClazz;
final Clazz superClazzX = getSuperClassFor(superClassName, nativeFramework, allClasses);
System.out.print("[Warning] class \"" + superClassName + "\" not found in bridge support files, ");
System.out.println("using \"" + superClazzX.name + "\" as superclass for \"" + className + "\"");
return superClazzX;
}
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:15,代码来源:SuperClassExtractor.java
示例2: addCategoriesAndPatchClasses
import com.apple.internal.jobjc.generator.model.Clazz; //导入依赖的package包/类
private static void addCategoriesAndPatchClasses(final List<Clazz> clazzes, final Clazz clazz) {
final List<String> fwNames = new ArrayList<String>(clazzes.size());
for (final Clazz cls : clazzes) {
if (cls == clazz) continue;
fwNames.add(cls.parent.name);
cls.parent.classes.remove(cls);
cls.parent.categories.add(new Category(cls, clazz));
}
System.out.println("creating categories in: " + Utils.joinWComma(fwNames));
}
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:13,代码来源:ClassConsolidator.java
示例3: disambiguateMethodNames
import com.apple.internal.jobjc.generator.model.Clazz; //导入依赖的package包/类
static void disambiguateMethodNames() {
// link all subclassers off their parents
for (final Clazz clazz : TypeCache.inst().getAllClasses()) {
final Clazz superClazz = clazz.superClass;
if (superClazz != null) superClazz.subClassers.add(clazz);
}
// recursively call all subclassers, starting from NSObject on down
disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject"));
// NSProxy does not appear to subclass from NSObject, but it is still a real full class...?
disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy"));
}
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:14,代码来源:MethodDisambiguator.java
示例4: JObject
import com.apple.internal.jobjc.generator.model.Clazz; //导入依赖的package包/类
public JObject(final Type type, final Clazz clazz) {
this.type = type;
this.clazz = clazz;
}
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:5,代码来源:JType.java
示例5: AbstractObjCClassFile
import com.apple.internal.jobjc.generator.model.Clazz; //导入依赖的package包/类
public AbstractObjCClassFile(final Clazz clazz, final String classname, final String genericArgs, final String superClass) {
super(clazz.getPackage(), classname, genericArgs, superClass);
this.clazz = clazz;
}
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:5,代码来源:AbstractObjCClassFile.java
示例6: JObjCClassFile
import com.apple.internal.jobjc.generator.model.Clazz; //导入依赖的package包/类
public JObjCClassFile(final Clazz clazz) {
super(clazz, clazz.name,
clazz.superClass == null ? "com.apple.jobjc.ID"
: clazz.superClass.getFullPath());
}
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:6,代码来源:JObjCClassFile.java
示例7: JObjCClassClassFile
import com.apple.internal.jobjc.generator.model.Clazz; //导入依赖的package包/类
public JObjCClassClassFile(final Clazz clazz) {
super(clazz, clazz.name + "Class", clazz.superClass != null ? clazz.superClass.getFullPath() + "Class" : ClassGenerator.JOBJC_PACKAGE + ".NSClass<" + clazz.name + ">");
}
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:4,代码来源:JObjCClassClassFile.java
示例8: disambiguateMethodNamesFor
import com.apple.internal.jobjc.generator.model.Clazz; //导入依赖的package包/类
static void disambiguateMethodNamesFor(final Clazz clazz) {
clazz.disambiguateMethods();
for (final Clazz subClazz : clazz.subClassers) {
disambiguateMethodNamesFor(subClazz);
}
}
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:7,代码来源:MethodDisambiguator.java
注:本文中的com.apple.internal.jobjc.generator.model.Clazz类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论