Searched refs:TypeProto (Results 1 - 13 of 13) sorted by relevance

/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/util/
H A DTypeProtoUtils.java34 import org.jf.dexlib2.analysis.TypeProto;
55 public static Iterable<TypeProto> getSuperclassChain(@Nonnull final TypeProto typeProto) {
56 return new Iterable<TypeProto>() {
58 @Override public Iterator<TypeProto> iterator() {
59 return new Iterator<TypeProto>() {
60 @Nullable private TypeProto type = getSuperclassAsTypeProto(typeProto);
66 @Override public TypeProto next() {
67 TypeProto type = this.type;
85 public static TypeProto getSuperclassAsTypeProt
[all...]
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/util/
H A DSuperclassChainTest.java41 import org.jf.dexlib2.analysis.TypeProto;
62 TypeProto objectClassProto = classPath.getClass("Ljava/lang/Object;");
63 TypeProto oneClassProto = classPath.getClass("Ltest/one;");
64 TypeProto twoClassProto = classPath.getClass("Ltest/two;");
65 TypeProto threeClassProto = classPath.getClass("Ltest/three;");
68 ImmutableList.<TypeProto>of(),
72 ImmutableList.<TypeProto>of(objectClassProto),
76 ImmutableList.<TypeProto>of(oneClassProto, objectClassProto),
80 ImmutableList.<TypeProto>of(twoClassProto, oneClassProto, objectClassProto),
93 TypeProto unknownClassProt
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
H A DTypeProto.java41 public interface TypeProto { interface
47 @Nonnull TypeProto getCommonSuperclass(@Nonnull TypeProto other);
H A DPrimitiveProto.java42 public class PrimitiveProto implements TypeProto {
57 @Nonnull @Override public TypeProto getCommonSuperclass(@Nonnull TypeProto other) {
H A DUnknownClassProto.java41 public class UnknownClassProto implements TypeProto {
54 @Nonnull @Override public TypeProto getCommonSuperclass(@Nonnull TypeProto other) {
H A DArrayProto.java45 public class ArrayProto implements TypeProto {
100 public TypeProto getCommonSuperclass(@Nonnull TypeProto other) {
112 TypeProto thisClass = classPath.getClass(elementType);
113 TypeProto otherClass = classPath.getClass(((ArrayProto)other).elementType);
114 TypeProto mergedClass = thisClass.getCommonSuperclass(otherClass);
H A DClassPath.java63 @Nonnull private final TypeProto unknownClass;
131 public TypeProto getClass(@Nonnull CharSequence type) {
135 private final CacheLoader<String, TypeProto> classLoader = new CacheLoader<String, TypeProto>() {
136 @Override public TypeProto load(String type) throws Exception {
145 @Nonnull private LoadingCache<String, TypeProto> loadedClasses = CacheBuilder.newBuilder().build(classLoader);
159 public TypeProto getUnknownClass() {
H A DAnalyzedMethodUtil.java44 public static boolean canAccess(@Nonnull TypeProto type, @Nonnull Method virtualMethod, boolean checkPackagePrivate,
H A DRegisterType.java44 @Nullable public final TypeProto type;
46 private RegisterType(byte category, @Nullable TypeProto type) {
279 TypeProto mergedType = null;
281 TypeProto type = this.type;
311 public static RegisterType getRegisterType(byte category, @Nullable TypeProto typeProto) {
H A DClassProto.java60 public class ClassProto implements TypeProto {
302 public TypeProto getCommonSuperclass(@Nonnull TypeProto other) {
340 List<TypeProto> thisChain = Lists.<TypeProto>newArrayList(this);
343 List<TypeProto> otherChain = Lists.newArrayList(other);
351 TypeProto typeProto = thisChain.get(i);
H A DCustomInlineMethodResolver.java120 TypeProto typeProto = classPath.getClass(className);
H A DMethodAnalyzer.java1161 TypeProto stringClass = classPath.getClass("Ljava/lang/String;");
1167 TypeProto classClass = classPath.getClass("Ljava/lang/Class;");
1198 TypeProto commonSuperclass = registerType.type.getCommonSuperclass(originalType.type);
1668 TypeProto objectRegisterTypeProto = objectRegisterType.type;
1671 TypeProto classTypeProto = classPath.getClass(objectRegisterTypeProto.getType());
1736 TypeProto typeProto = classPath.getClass(targetMethod.getDefiningClass());
1807 TypeProto objectRegisterTypeProto = objectRegisterType.type;
1818 TypeProto typeProto = classPath.getClass(method.getDefiningClass());
1819 TypeProto superType;
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/
H A DCommonSuperclassTest.java97 TypeProto commonSuperclassProto = classPath.getClass(commonSuperclass);
98 TypeProto type1Proto = classPath.getClass(type1);
99 TypeProto type2Proto = classPath.getClass(type2);

Completed in 197 milliseconds