public class UnionT extends StructOrUnionT
members, name, nonce| Constructor and Description |
|---|
UnionT(java.lang.String tag)
Create a new, incomplete union type.
|
UnionT(java.lang.String tag,
java.util.List<VariableT> members)
Create a new union type with a fresh nonce.
|
UnionT(Type template,
Nonce nonce,
java.lang.String tag,
java.util.List<VariableT> members)
Create a new union type.
|
| Modifier and Type | Method and Description |
|---|---|
UnionT |
copy()
Create a deep copy of this type.
|
boolean |
isUnion()
Determine whether this type is a union.
|
Type.Tag |
tag()
Get this type's tag.
|
UnionT |
toUnion()
Get this type as a union.
|
void |
write(java.lang.Appendable out)
Write a human readable representation to the specified
appendable.
|
equals, getMember, getMemberCount, getMembers, getName, getNonce, hashCode, hasName, hasTagged, isUnnamed, lookup, seal, setMembers, toStructOrUnion, toTaggedaddAttribute, 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, hasVariable, hasWTag, isAlias, isAnnotated, isArray, isBoolean, isClass, isConcrete, isEnum, isEnumerator, isError, isFloat, isFunction, isInstantiated, isInteger, isInterface, isInternal, isInternalParameter, isLabel, isMethod, isNamedParameter, isNumber, isPackage, isParameter, isParameterized, isPointer, isSealed, isStruct, isTuple, isUnit, isVariable, isVariant, isVoid, isWildcard, isWrapped, language, locate, locate, mark, properties, removeAttribute, removeProperty, resolve, resolve, scope, seal, setLocation, setLocation, setProperty, shape, shape, toAlias, toAnnotated, toArray, toBoolean, toClass, toEnum, toEnumerator, toFloat, toFunction, toInstantiated, toInteger, toInterface, toInternal, toInternalParameter, toLabel, toMethod, toNamedParameter, toNumber, toPackage, toParameter, toParameterized, toPointer, toStruct, toTuple, toUnit, toVariable, toVariant, toVoid, toWildcard, toWrapped, trace, wtagadd, 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 UnionT(java.lang.String tag)
tag - The tag.java.lang.NullPointerException - Signals a null tag.public UnionT(java.lang.String tag,
java.util.List<VariableT> members)
tag - The tag.members - The members.java.lang.NullPointerException - Signals a null tag.public UnionT(Type template, Nonce nonce, java.lang.String tag, java.util.List<VariableT> members)
template - The type whose annotations to copy.nonce - The nonce.tag - The tag.members - The members.java.lang.NullPointerException - Signals a null tag.public UnionT copy()
Typepublic Type.Tag tag()
Typetag in class TypeType.wtag()public boolean isUnion()
Typepublic void write(java.lang.Appendable out)
throws java.io.IOException
NodeObject.toString().Copyright © 2014. All Rights Reserved.