Class ArrayType

  • All Implemented Interfaces:
    Constants, RuntimeConstants

    public final class ArrayType
    extends Type
    This class represents an Java array type. It overrides the relevant methods in class Type. WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.
    • Field Detail

      • elemType

        Type elemType
        The type of the element.
    • Constructor Detail

      • ArrayType

        ArrayType​(java.lang.String typeSig,
                  Type elemType)
        Construct an array type. Use Type.tArray to create a new array type.
    • Method Detail

      • getElementType

        public Type getElementType()
        Description copied from class: Type
        Return the element type of an array type. Only works for array types.
        Overrides:
        getElementType in class Type
      • getArrayDimension

        public int getArrayDimension()
        Description copied from class: Type
        Return the array dimension. Only works for array types.
        Overrides:
        getArrayDimension in class Type
      • typeString

        public java.lang.String typeString​(java.lang.String id,
                                           boolean abbrev,
                                           boolean ret)
        Description copied from class: Type
        Convert a Type to a string, if abbrev is true class names are not fully qualified, if ret is true the return type is included.
        Overrides:
        typeString in class Type