Klasse ArrayType


public final class ArrayType extends ReferenceType
Denotes array type, such as int[][]
Version:
$Id: ArrayType.java,v 1.4 2008/08/26 15:02:04 aclement Exp $
Autor:
M. Dahm
  • Konstruktordetails

    • ArrayType

      public ArrayType(byte type, int dimensions)
      Convenience constructor for array type, e.g. int[]
      Parameter:
      type - array type, e.g. T_INT
    • ArrayType

      public ArrayType(String class_name, int dimensions)
      Convenience constructor for reference array type, e.g. Object[]
      Parameter:
      class_name - complete name of class (java.lang.String, e.g.)
    • ArrayType

      public ArrayType(Type type, int dimensions)
      Constructor for array of given type
      Parameter:
      type - type of array (may be an array itself)
  • Methodendetails

    • getBasicType

      public Type getBasicType()
      Gibt zurück:
      basic type of array, i.e., for int[][][] the basic type is int
    • getElementType

      public Type getElementType()
      Gibt zurück:
      element type of array, i.e., for int[][][] the element type is int[][]
    • getDimensions

      public int getDimensions()
      Gibt zurück:
      number of dimensions of array
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
      Gibt zurück:
      a hash code value for the object.
    • equals

      public boolean equals(Object type)
      Setzt außer Kraft:
      equals in Klasse Object
      Gibt zurück:
      true if both type objects refer to the same array type.