本文整理汇总了Java中org.jf.dexlib2.analysis.TypeProto类的典型用法代码示例。如果您正苦于以下问题:Java TypeProto类的具体用法?Java TypeProto怎么用?Java TypeProto使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TypeProto类属于org.jf.dexlib2.analysis包,在下文中一共展示了TypeProto类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSuperclassAsTypeProto
import org.jf.dexlib2.analysis.TypeProto; //导入依赖的package包/类
@Nullable
public static TypeProto getSuperclassAsTypeProto(@Nonnull TypeProto type) {
try {
String next = type.getSuperclass();
if (next != null) {
return type.getClassPath().getClass(next);
} else {
return null;
}
} catch (UnresolvedClassException ex) {
return type.getClassPath().getUnknownClass();
}
}
示例2: getSuperclassAsTypeProto
import org.jf.dexlib2.analysis.TypeProto; //导入依赖的package包/类
public static TypeProto getSuperclassAsTypeProto( TypeProto type) {
try {
String next = type.getSuperclass();
if (next != null) {
return type.getClassPath().getClass(next);
} else {
return null;
}
} catch (UnresolvedClassException ex) {
return type.getClassPath().getUnknownClass();
}
}
示例3: extendsFrom
import org.jf.dexlib2.analysis.TypeProto; //导入依赖的package包/类
public static boolean extendsFrom( TypeProto candidate, String possibleSuper) {
if (candidate.getType().equals(possibleSuper)) {
return true;
}
for (TypeProto superProto: getSuperclassChain(candidate)) {
if (superProto.getType().equals(possibleSuper)) {
return true;
}
}
return false;
}
示例4: extendsFrom
import org.jf.dexlib2.analysis.TypeProto; //导入依赖的package包/类
public static boolean extendsFrom(@Nonnull TypeProto candidate, @Nonnull String possibleSuper) {
if (candidate.getType().equals(possibleSuper)) {
return true;
}
for (TypeProto superProto: getSuperclassChain(candidate)) {
if (superProto.getType().equals(possibleSuper)) {
return true;
}
}
return false;
}