Package org.jf.dexlib2.analysis
Class ArrayProto
- java.lang.Object
-
- org.jf.dexlib2.analysis.ArrayProto
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassPathclassPathprotected intdimensionsprotected java.lang.StringelementType
-
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 intfindMethodIndexInVtable(MethodReference method)ClassPathgetClassPath()TypeProtogetCommonSuperclass(TypeProto other)intgetDimensions()java.lang.StringgetElementType()FieldReferencegetFieldByOffset(int fieldOffset)java.lang.StringgetImmediateElementType()MethodgetMethodByVtableIndex(int vtableIndex)java.lang.StringgetSuperclass()java.lang.StringgetType()booleanimplementsInterface(java.lang.String iface)booleanisInterface()java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
getClassPath
@Nonnull public ClassPath getClassPath()
- Specified by:
getClassPathin interfaceTypeProto
-
getDimensions
public int getDimensions()
-
isInterface
public boolean isInterface()
- Specified by:
isInterfacein 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:
implementsInterfacein interfaceTypeProto
-
getSuperclass
@Nullable public java.lang.String getSuperclass()
- Specified by:
getSuperclassin interfaceTypeProto
-
getCommonSuperclass
@Nonnull public TypeProto getCommonSuperclass(@Nonnull TypeProto other)
- Specified by:
getCommonSuperclassin interfaceTypeProto
-
getFieldByOffset
@Nullable public FieldReference getFieldByOffset(int fieldOffset)
- Specified by:
getFieldByOffsetin interfaceTypeProto
-
getMethodByVtableIndex
@Nullable public Method getMethodByVtableIndex(int vtableIndex)
- Specified by:
getMethodByVtableIndexin interfaceTypeProto
-
findMethodIndexInVtable
public int findMethodIndexInVtable(@Nonnull MethodReference method)- Specified by:
findMethodIndexInVtablein interfaceTypeProto
-
-