Package org.jf.dexlib2.analysis
Class ArrayProto
- java.lang.Object
-
- org.jf.dexlib2.analysis.ArrayProto
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassPath
classPath
protected int
dimensions
protected java.lang.String
elementType
-
Constructor Summary
Constructors Constructor Description ArrayProto(ClassPath classPath, java.lang.String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
findMethodIndexInVtable(MethodReference method)
ClassPath
getClassPath()
TypeProto
getCommonSuperclass(TypeProto other)
int
getDimensions()
java.lang.String
getElementType()
FieldReference
getFieldByOffset(int fieldOffset)
java.lang.String
getImmediateElementType()
Method
getMethodByVtableIndex(int vtableIndex)
java.lang.String
getSuperclass()
java.lang.String
getType()
boolean
implementsInterface(java.lang.String iface)
boolean
isInterface()
java.lang.String
toString()
-
-
-
Field Detail
-
classPath
protected final ClassPath classPath
-
dimensions
protected final int dimensions
-
elementType
protected final java.lang.String elementType
-
-
Constructor Detail
-
ArrayProto
public ArrayProto(@Nonnull ClassPath classPath, @Nonnull java.lang.String type)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getClassPath
@Nonnull public ClassPath getClassPath()
- Specified by:
getClassPath
in interfaceTypeProto
-
getDimensions
public int getDimensions()
-
isInterface
public boolean isInterface()
- Specified by:
isInterface
in interfaceTypeProto
-
getElementType
@Nonnull public java.lang.String getElementType()
- Returns:
- The base element type of this array. E.g. This would return Ljava/lang/String; for [[Ljava/lang/String;
-
getImmediateElementType
@Nonnull public java.lang.String getImmediateElementType()
- Returns:
- The immediate element type of this array. E.g. This would return [Ljava/lang/String; for [[Ljava/lang/String;
-
implementsInterface
public boolean implementsInterface(@Nonnull java.lang.String iface)
- Specified by:
implementsInterface
in interfaceTypeProto
-
getSuperclass
@Nullable public java.lang.String getSuperclass()
- Specified by:
getSuperclass
in interfaceTypeProto
-
getCommonSuperclass
@Nonnull public TypeProto getCommonSuperclass(@Nonnull TypeProto other)
- Specified by:
getCommonSuperclass
in interfaceTypeProto
-
getFieldByOffset
@Nullable public FieldReference getFieldByOffset(int fieldOffset)
- Specified by:
getFieldByOffset
in interfaceTypeProto
-
getMethodByVtableIndex
@Nullable public Method getMethodByVtableIndex(int vtableIndex)
- Specified by:
getMethodByVtableIndex
in interfaceTypeProto
-
findMethodIndexInVtable
public int findMethodIndexInVtable(@Nonnull MethodReference method)
- Specified by:
findMethodIndexInVtable
in interfaceTypeProto
-
-