| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<VariableT> |
members
The list of members represents as
VariableT. |
protected java.lang.String |
name
The name.
|
protected Nonce |
nonce
The nonce.
|
| Constructor and Description |
|---|
StructOrUnionT(Type template,
Nonce nonce,
java.lang.String name,
java.util.List<VariableT> members)
Create a new struct or union type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Determine whether this type equals the specified object.
|
VariableT |
getMember(int index)
Get the member with the specified index.
|
int |
getMemberCount()
Get the number of members.
|
java.util.List<VariableT> |
getMembers()
Get the members of the tagged type.
|
java.lang.String |
getName()
Get the name of this node.
|
Nonce |
getNonce()
Get this tagged type's nonce.
|
int |
hashCode() |
boolean |
hasName(java.lang.String name)
Determine whether this node's name is the same as the specified
name.
|
boolean |
hasTagged()
Determine whether this type is tagged.
|
boolean |
isUnnamed()
Determine whether this tagged type is unnamed.
|
Type |
lookup(java.lang.String name)
Look up the member with the specified name.
|
Type |
seal()
Seal this struct or union.
|
void |
setMembers(java.util.List<VariableT> members)
Set the members.
|
StructOrUnionT |
toStructOrUnion()
Get this type as a struct or union.
|
Tagged |
toTagged()
Get this type as a tagged type.
|
addAttribute, annotate, attribute, attribute, attribute, attributes, cast, checkNotSealed, constant, constant, copy, 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, isUnion, isUnit, isVariable, isVariant, isVoid, isWildcard, isWrapped, language, locate, locate, mark, properties, removeAttribute, removeProperty, resolve, resolve, scope, seal, setLocation, setLocation, setProperty, shape, shape, tag, toAlias, toAnnotated, toArray, toBoolean, toClass, toEnum, toEnumerator, toFloat, toFunction, toInstantiated, toInteger, toInterface, toInternal, toInternalParameter, toLabel, toMethod, toNamedParameter, toNumber, toPackage, toParameter, toParameterized, toPointer, toStruct, toTuple, toUnion, 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, toToken, writeprotected final Nonce nonce
protected final java.lang.String name
public StructOrUnionT(Type template, Nonce nonce, java.lang.String name, java.util.List<VariableT> members)
template - The type whose annotations to copy.nonce - The nonce.name - The name.members - The members.java.lang.NullPointerException - Signals a null name.public Type seal()
seal in class TypeType.seal(List)public StructOrUnionT toStructOrUnion()
TypetoStructOrUnion in class Typepublic boolean hasTagged()
Typepublic Tagged toTagged()
TypetoTagged in class TypeType.hasTagged()public Nonce getNonce()
Taggedpublic boolean isUnnamed()
Taggedtag(nonce).public boolean hasName(java.lang.String name)
Nodepublic java.lang.String getName()
Nodepublic Type lookup(java.lang.String name)
Taggedlookup in interface Taggedname - The name.ErrorT.TYPE if the tagged type has no
such member.public int getMemberCount()
TaggedgetMemberCount in interface Tagged-1 if this type is
incomplete.public VariableT getMember(int index)
Taggedpublic java.util.List<VariableT> getMembers()
TaggedgetMembers in interface Taggednull if this type is
incomplete.public void setMembers(java.util.List<VariableT> members)
members - The members.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.Objecto - The object.true if this type equals the object.Copyright © 2014. All Rights Reserved.