Class ArrayProto

java.lang.Object
org.jf.dexlib2.analysis.ArrayProto
All Implemented Interfaces:
TypeProto

public class ArrayProto extends Object implements TypeProto
  • Field Details

    • classPath

      protected final ClassPath classPath
    • dimensions

      protected final int dimensions
    • elementType

      protected final String elementType
    • BRACKETS

      private static final String BRACKETS
  • Constructor Details

    • ArrayProto

      public ArrayProto(@Nonnull ClassPath classPath, @Nonnull String type)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getClassPath

      @Nonnull public ClassPath getClassPath()
      Specified by:
      getClassPath in interface TypeProto
    • getType

      @Nonnull public String getType()
      Specified by:
      getType in interface TypeProto
    • getDimensions

      public int getDimensions()
    • isInterface

      public boolean isInterface()
      Specified by:
      isInterface in interface TypeProto
    • getElementType

      @Nonnull public 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 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 String iface)
      Specified by:
      implementsInterface in interface TypeProto
    • getSuperclass

      @Nullable public String getSuperclass()
      Specified by:
      getSuperclass in interface TypeProto
    • getCommonSuperclass

      @Nonnull public TypeProto getCommonSuperclass(@Nonnull TypeProto other)
      Specified by:
      getCommonSuperclass in interface TypeProto
    • makeArrayType

      @Nonnull private static String makeArrayType(@Nonnull String elementType, int dimensions)
    • getFieldByOffset

      @Nullable public FieldReference getFieldByOffset(int fieldOffset)
      Specified by:
      getFieldByOffset in interface TypeProto
    • getMethodByVtableIndex

      @Nullable public Method getMethodByVtableIndex(int vtableIndex)
      Specified by:
      getMethodByVtableIndex in interface TypeProto
    • findMethodIndexInVtable

      public int findMethodIndexInVtable(@Nonnull MethodReference method)
      Specified by:
      findMethodIndexInVtable in interface TypeProto