| |
|
| xtc.type.Type xtc.type.DerivedT xtc.type.ArrayT
ArrayT | public class ArrayT extends DerivedT (Code) | | An array type. An array can either be of fixed or variable length,
with a length of -1 indicating that a fixed length
array is incomplete.
author: Robert Grimm version: $Revision: 1.40 $ |
Constructor Summary | |
public | ArrayT(Type type) Create a new, incomplete array type. | public | ArrayT(Type type, boolean varlength) Create a new variable length array. | public | ArrayT(Type type, long length) Create a new array type. | public | ArrayT(Type template, Type type, boolean varlength, long length) Create a new array type. |
ArrayT | public ArrayT(Type type)(Code) | | Create a new, incomplete array type.
Parameters: type - The element type. |
ArrayT | public ArrayT(Type type, boolean varlength)(Code) | | Create a new variable length array.
Parameters: type - The element type. Parameters: varlength - The flag for whether this array is of variablelength, which must be true . |
ArrayT | public ArrayT(Type type, long length)(Code) | | Create a new array type.
Parameters: type - The element type. Parameters: length - The length. |
ArrayT | public ArrayT(Type template, Type type, boolean varlength, long length)(Code) | | Create a new array type.
Parameters: template - The type whose annotations to copy. Parameters: type - The element type. Parameters: varlength - The flag for whether this array is variable. Parameters: length - The length. |
getLength | public long getLength()(Code) | | Get the length.
The length or -1 if this type is either ofvariable length or incomplete. |
getType | public Type getType()(Code) | | Get the element type.
The element type. |
hasLength | public boolean hasLength()(Code) | | Determine whether this array has a length.
true if this array has a length. |
hashCode | public int hashCode()(Code) | | |
isArray | public boolean isArray()(Code) | | |
isVarLength | public boolean isVarLength()(Code) | | Determine whether the array is of variable length.
true if this array is variable length. |
setLength | public void setLength(long length)(Code) | | Set the length.
Parameters: length - The length. throws: IllegalStateException - Signals that this type is sealed. |
setVarLength | public void setVarLength(boolean varlength)(Code) | | Set the variable length flag.
Parameters: varlength - The variable length flag. throws: IllegalStateException - Signals that this type is sealed. |
Methods inherited from xtc.type.DerivedT | public boolean isDerived()(Code)(Java Doc)
|
|
|
|