Class ArrayType

java.lang.Object
org.glassfish.rmic.tools.java.Type
org.glassfish.rmic.tools.java.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 Details

    • elemType

      Type elemType
      The type of the element.
  • Constructor Details

    • ArrayType

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

    • 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 String typeString(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