| Constructor and Description |
|---|
ArrayT(Type type)
Create a new, incomplete array type.
|
ArrayT(Type type,
boolean varlength)
Create a new variable length array.
|
ArrayT(Type type,
long length)
Create a new array type.
|
ArrayT(Type template,
Type type,
boolean varlength,
long length)
Create a new array type.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayT |
copy()
Create a deep copy of this type.
|
boolean |
equals(java.lang.Object o) |
long |
getLength()
Get the length.
|
Type |
getType()
Get the element type.
|
int |
hashCode() |
boolean |
hasLength()
Determine whether this array has a length.
|
boolean |
isArray()
Determine whether this type is an array.
|
boolean |
isVarLength()
Determine whether the array is of variable length.
|
Type |
seal()
Seal this type.
|
void |
setLength(long length)
Set the length.
|
void |
setVarLength(boolean varlength)
Set the variable length flag.
|
Type.Tag |
tag()
Get this type's tag.
|
ArrayT |
toArray()
Get this type as an array.
|
void |
write(java.lang.Appendable out)
Write a human readable representation to the specified
appendable.
|
addAttribute, annotate, attribute, attribute, attribute, attributes, cast, checkNotSealed, constant, constant, copy, deannotate, getAttribute, getAttribute, getConstant, getConstant, getLanguage, getLanguage, getLocation, getLocation, getScope, getScope, getShape, getShape, hasAlias, hasAnnotated, hasAttribute, hasAttribute, hasAttribute, hasAttribute, hasAttributes, hasConstant, hasConstant, hasEnum, hasEnumerator, hasError, hasInstantiated, hasLanguage, hasLanguage, hasLocation, hasLocation, hasParameterized, hasScope, hasScope, hasShape, hasShape, hasStructOrUnion, hasTag, hasTagged, hasVariable, hasWTag, isAlias, isAnnotated, isBoolean, isClass, isConcrete, isEnum, isEnumerator, isError, isFloat, isFunction, isInstantiated, isInteger, isInterface, isInternal, isInternalParameter, isLabel, isMethod, isNamedParameter, isNumber, isPackage, isParameter, isParameterized, isPointer, isSealed, isStruct, isTuple, isUnion, isUnit, isVariable, isVariant, isVoid, isWildcard, isWrapped, language, locate, locate, mark, properties, removeAttribute, removeProperty, resolve, resolve, scope, seal, setLocation, setLocation, setProperty, shape, shape, toAlias, toAnnotated, toBoolean, toClass, toEnum, toEnumerator, toFloat, toFunction, toInstantiated, toInteger, toInterface, toInternal, toInternalParameter, toLabel, toMethod, toNamedParameter, toNumber, toPackage, toParameter, toParameterized, toPointer, toStruct, toStructOrUnion, toTagged, toTuple, toUnion, toUnit, toVariable, toVariant, toVoid, toWildcard, toWrapped, trace, wtagadd, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getName, getNode, getProperty, getString, getStringProperty, getTokenText, hasName, hasProperty, hasTraversal, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, remove, set, size, strip, toAnnotation, toList, toString, toTokenpublic ArrayT(Type type)
type - The element type.public ArrayT(Type type, boolean varlength)
type - The element type.varlength - The flag for whether this array is of variable
length, which must be true.public ArrayT(Type type, long length)
type - The element type.length - The length.public Type seal()
Typetype, the corresponding overridden method reads:
public Type seal() {
if (! isSealed()) {
super.seal();
type.seal();
}
return this;
}
First testing whether a type is sealed and then invoking the
superclass' seal() method avoids infinite recursions
for mutually recursive types.seal in class TypeType.seal(List)public ArrayT copy()
Typepublic Type.Tag tag()
Typetag in class TypeType.wtag()public boolean isArray()
Typepublic Type getType()
public boolean isVarLength()
true if this array is variable length.public void setVarLength(boolean varlength)
varlength - The variable length flag.java.lang.IllegalStateException - Signals that this type is sealed.public boolean hasLength()
true if this array has a length.public long getLength()
-1 if this type is either of
variable length or incomplete.public void setLength(long length)
length - The length.java.lang.IllegalStateException - Signals that this type is sealed.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic void write(java.lang.Appendable out)
throws java.io.IOException
NodeObject.toString().Copyright © 2014. All Rights Reserved.