All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class de.fub.bytecode.generic.ArrayType

java.lang.Object
   |
   +----de.fub.bytecode.generic.Type
           |
           +----de.fub.bytecode.generic.ReferenceType
                   |
                   +----de.fub.bytecode.generic.ArrayType

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

Version:
$Id: ArrayType.java,v 1.7 2000/02/22 09:29:13 dahm Exp $
Author:
M. Dahm

Constructor Index

 o ArrayType(byte, int)
Convenience constructor for array type, e.g.
 o ArrayType(String, int)
Convenience constructor for reference array type, e.g.
 o ArrayType(Type, int)
Constructor for array of given type

Method Index

 o equals(Object)
 o getBasicType()
 o getDimensions()
 o getElementType()

Constructors

 o ArrayType
 public ArrayType(byte type,
                  int dimensions)
Convenience constructor for array type, e.g. int[]

Parameters:
type - array type, e.g. T_INT
 o ArrayType
 public ArrayType(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.)
 o ArrayType
 public ArrayType(Type type,
                  int dimensions)
Constructor for array of given type

Parameters:
type - type of array (may be an array itself)

Methods

 o getBasicType
 public Type getBasicType()
Returns:
basic type of array, i.e. for int[][][] the basic type is int
 o getElementType
 public Type getElementType()
Returns:
element type of array, i.e. for int[][][] the element type is int[][]
 o getDimensions
 public int getDimensions()
Returns:
number of dimensions of array
 o equals
 public boolean equals(Object type)
Overrides:
equals in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index