|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Node
xtc.type.Type
xtc.type.DerivedT
xtc.type.StructOrUnionT
xtc.type.StructT
public class StructT
A struct type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xtc.type.Type |
|---|
Type.Tag |
| Field Summary |
|---|
| Fields inherited from class xtc.type.StructOrUnionT |
|---|
members, name, nonce |
| Constructor Summary | |
|---|---|
StructT(java.lang.String tag)
Create a new, incomplete struct. |
|
StructT(java.lang.String tag,
java.util.List<VariableT> members)
Create a new struct type. |
|
StructT(Type template,
Nonce nonce,
java.lang.String tag,
java.util.List<VariableT> members)
Create a new struct type. |
|
| Method Summary | |
|---|---|
StructT |
copy()
Create a deep copy of this type. |
boolean |
isStruct()
Determine whether this type is a struct. |
Type.Tag |
tag()
Get this type's tag. |
StructT |
toStruct()
Get this type as a struct. |
void |
write(java.lang.Appendable out)
Write a human readable representation to the specified appendable. |
| Methods inherited from class xtc.type.StructOrUnionT |
|---|
equals, getMember, getMemberCount, getMembers, getName, getNonce, hashCode, hasName, hasTagged, isUnnamed, lookup, seal, setMembers, toStructOrUnion, toTagged |
| Methods inherited from class xtc.type.DerivedT |
|---|
isDerived |
| Methods inherited from class xtc.tree.Node |
|---|
add, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface xtc.type.Tagged |
|---|
isEnum, isUnion |
| Constructor Detail |
|---|
public StructT(java.lang.String tag)
tag - The tag.
java.lang.NullPointerException - Signals a null tag.
public StructT(java.lang.String tag,
java.util.List<VariableT> members)
tag - The tag.members - The members.
java.lang.NullPointerException - Signals a null tag.
public StructT(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.| Method Detail |
|---|
public StructT copy()
Type
copy in class Typepublic Type.Tag tag()
Type
tag in class TypeType.wtag()public boolean isStruct()
Type
isStruct in interface TaggedisStruct in class Typetrue if this type is a struct.public StructT toStruct()
Type
toStruct in class Type
public void write(java.lang.Appendable out)
throws java.io.IOException
NodeObject.toString().
write in class Nodeout - The appendable.
java.io.IOException - Signals an I/O error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||