Class: sun.rmi.rmic.iiop.ArrayType
- public class ArrayType
- extends Type
ArrayType is a wrapper for any of the other types. The getElementType()
method can be used to get the array element type. The getArrayDimension()
method can be used to get the array dimension.
Inheritance
Superclass tree:- java.lang.Object
- sun.rmi.rmic.iiop.Type
- sun.rmi.rmic.iiop.ArrayType
Methods
-
ArrayTypetop
private ArrayType(ContextStack stack, Type type, int arrayDimension)Create an ArrayType instance for the given type. The resulting object is not yet completely initialized. -
addTypestop
-
destroytop
protected void destroy()Release all resources -
forArraytop
Create an ArrayType object for the given type. If the class is not a properly formed or if some other error occurs, the return value will be null, and errors will have been reported to the supplied BatchEnvironment. -
getArrayBracketstop
public String getArrayBrackets()Get brackets string. Returns "" if not an array.- Override hierarchy:
- getArrayBrackets from Type
-
getArrayDimensiontop
public int getArrayDimension()Get array dimension. Returns zero if not an array.- Override hierarchy:
- getArrayDimension from Type
-
getElementTypetop
public Type getElementType()Get element type. Returns null if not an array.- Override hierarchy:
- getElementType from Type
-
getSignaturetop
public String getSignature()Return signature for this type (e.g. com.acme.Dynamite would return "com.acme.Dynamite", byte = "B")- Override hierarchy:
- getSignature from Type
-
getTypeDescriptiontop
public String getTypeDescription()Return a string describing this type.- Override hierarchy:
- getTypeDescription from Type
-
getTypeNametop
public String getTypeName(boolean useQualifiedNames, boolean useIDLNames, boolean globalIDLNames)Return the name of this type. For arrays, will include "[]" if useIDLNames == false.- Override hierarchy:
- getTypeName from Type
-
loadClasstop
protected Class loadClass() -
swapInvalidTypestop
protected void swapInvalidTypes()Convert all invalid types to valid ones.- Override hierarchy:
- swapInvalidTypes from Type
-
toStringtop
public String toString()Return a string representation of this type.
