public class Struct extends Symbol
Struct contains a list of named types.| Modifier and Type | Class and Description |
|---|---|
static class |
Struct.Item |
| Constructor and Description |
|---|
Struct(SymbolID id,
Comment comment,
Context context) |
Struct(SymbolID id,
Comment comment,
Metadata metadata,
Context context) |
| Modifier and Type | Method and Description |
|---|---|
int |
addItem(java.lang.String name,
Type type)
Insert a new type and name into the struct
|
int |
addItem(Struct.Item i) |
void |
freeze() |
java.util.Set |
getAllSymbolReferences()
Return the symbol references for the whole type hierarchy rooted
with this symbol.
|
java.util.Set |
getBasicArrayRefs()
Return the set of all references to arrays of fundamental types.
|
java.util.List |
getItems() |
java.util.Set |
getSymbolReferences()
Return the set of symbols (in the form of
SymbolID)
referenced by this particular symbol. |
boolean |
hasArrayReference() |
boolean |
hasType(int type) |
boolean |
hasTypeEmbedded(int type) |
addMetadata, getAttribute, getAttributes, getComment, getDepth, getMetadata, getSymbolID, getSymbolType, getSymbolTypeString, getUserSpecified, hasAttribute, isClass, isInterface, isPackage, isStruct, minimumDepth, removeAttribute, setAttribute, setAttribute, setComment, setUserSpecifiedcompareTo, equals, fromXML, getFullName, getShortName, getShortName, getSymbolName, getVersion, hashCode, isSymbolBindC, setFromXMLcheckFrozen, clone, protectCollection, protectList, protectMap, protectSetpublic boolean hasType(int type)
public boolean hasTypeEmbedded(int type)
public java.util.Set getSymbolReferences()
SymbolSymbolID)
referenced by this particular symbol. The return argument may be
null if this symbol contains no external references.getSymbolReferences in class Symbolpublic java.util.Set getAllSymbolReferences()
SymbolgetAllSymbolReferences in class Symbolpublic java.util.Set getBasicArrayRefs()
SymbolgetBasicArrayRefs in class Symbolpublic java.util.List getItems()
Struct.Item.public int addItem(Struct.Item i)
public boolean hasArrayReference()
public int addItem(java.lang.String name,
Type type)