Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class DE.fub.inf.JVM.ClassGen.ArrayType

java.lang.Object
  |
  +--DE.fub.inf.JVM.ClassGen.Type
        |
        +--DE.fub.inf.JVM.ClassGen.ReferenceType
              |
              +--DE.fub.inf.JVM.ClassGen.ArrayType

public final class ArrayType
extends ReferenceType
Denotes array type, such as int[][]

Version:
$Id: ArrayType.java,v 1.3 1998/10/16 09:32:10 dahm Exp $
Author:
M. Dahm

Fields inherited from class DE.fub.inf.JVM.ClassGen.Type
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, NO_ARGS, SHORT, signature, type, VOID
 
Constructor Summary
ArrayType(byte type, int dimensions)
          Convenience constructor for array type, e.g. int[]
ArrayType(java.lang.String class_name, int dimensions)
          Convenience constructor for reference array type, e.g.
ArrayType(Type type, int dimensions)
          Constructor for array of given type
 
Method Summary
boolean equals(java.lang.Object type)
           
Type getBasicType()
           
int getDimensions()
           
Type getElementType()
           
 
Methods inherited from class DE.fub.inf.JVM.ClassGen.Type
getArgumentTypes, getMethodSignature, getReturnType, getSignature, getSize, getType, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

ArrayType

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

ArrayType

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

ArrayType

public ArrayType(Type type,
                 int dimensions)
Constructor for array of given type
Parameters:
type - type of array (may be an array itself)
Method Detail

getBasicType

public Type getBasicType()
Returns:
basic type of array, i.e. for int[][][] the basic type is int

getElementType

public Type getElementType()
Returns:
element type of array, i.e. for int[][][] the element type is int[][]

getDimensions

public int getDimensions()
Returns:
number of dimensions of array

equals

public boolean equals(java.lang.Object type)
Overrides:
equals in class java.lang.Object

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD