public class EnumeratorT extends WrappedT
| Constructor and Description |
|---|
EnumeratorT(Type type,
java.lang.String name,
java.math.BigInteger value)
Create a new enumerator.
|
EnumeratorT(Type template,
Type type,
java.lang.String name,
java.math.BigInteger value)
Create a new enumerator.
|
| Modifier and Type | Method and Description |
|---|---|
EnumeratorT |
copy()
Create a deep copy of this type.
|
java.lang.String |
getName()
Get the name.
|
java.math.BigInteger |
getValue()
Get the value.
|
boolean |
hasEnumerator()
Determine whether this type contains an enumerator.
|
boolean |
hasName(java.lang.String name)
Determine whether this enumerator has the specified name.
|
boolean |
isEnumerator()
Determine whether this type is an enumerator.
|
EnumeratorT |
toEnumerator()
Get this type as an enumerator.
|
void |
write(java.lang.Appendable out)
Write a human readable representation to the specified
appendable.
|
Type.Tag |
wtag()
Get this wrapped type's tag.
|
equals, getAttribute, getConstant, getLanguage, getLocation, getScope, getShape, getType, hasAlias, hasAnnotated, hasAttribute, hasConstant, hasEnum, hashCode, hasInstantiated, hasLanguage, hasLocation, hasParameterized, hasScope, hasShape, hasTagged, hasVariable, isWrapped, resolve, seal, setType, tag, toAlias, toAnnotated, toEnum, toInstantiated, toParameterized, toStructOrUnion, toTagged, toVariable, toWrappedaddAttribute, annotate, attribute, attribute, attribute, attributes, cast, checkNotSealed, constant, constant, copy, deannotate, getAttribute, getConstant, getLanguage, getLocation, getScope, getShape, hasAttribute, hasAttribute, hasAttribute, hasAttributes, hasConstant, hasError, hasLanguage, hasLocation, hasScope, hasShape, hasStructOrUnion, hasTag, hasWTag, isAlias, isAnnotated, isArray, isBoolean, isClass, isConcrete, isDerived, isEnum, 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, language, locate, locate, mark, properties, removeAttribute, removeProperty, resolve, scope, seal, setLocation, setLocation, setProperty, shape, shape, toArray, toBoolean, toClass, toFloat, toFunction, toInteger, toInterface, toInternal, toInternalParameter, toLabel, toMethod, toNamedParameter, toNumber, toPackage, toParameter, toPointer, toStruct, toTuple, toUnion, toUnit, toVariant, toVoid, toWildcard, traceadd, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getNode, getProperty, getString, getStringProperty, getTokenText, hasProperty, hasTraversal, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, remove, set, size, strip, toAnnotation, toList, toString, toTokenpublic EnumeratorT(Type type, java.lang.String name, java.math.BigInteger value)
type - The type.name - The name.value - The value.public EnumeratorT copy()
Typepublic Type.Tag wtag()
Typewtag in class TypeType.tag()public boolean isEnumerator()
TypeisEnumerator in class Typetrue if this type is an enumerator.public boolean hasEnumerator()
TypehasEnumerator in class WrappedTtrue if this type contains an enumerator.public EnumeratorT toEnumerator()
TypetoEnumerator in class WrappedTpublic boolean hasName(java.lang.String name)
public java.lang.String getName()
public java.math.BigInteger getValue()
public void write(java.lang.Appendable out)
throws java.io.IOException
NodeObject.toString().Copyright © 2014. All Rights Reserved.