gov.llnl.babel.symbols
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, setUserSpecified
compareTo, equals, fromXML, getFullName, getShortName, getShortName, getSymbolName, getVersion, hashCode, isSymbolBindC, setFromXML
checkFrozen, clone, protectCollection, protectList, protectMap, protectSet
public boolean hasType(int type)
public boolean hasTypeEmbedded(int type)
public java.util.Set getSymbolReferences()
Symbol
SymbolID
)
referenced by this particular symbol. The return argument may be
null if this symbol contains no external references.getSymbolReferences
in class Symbol
public java.util.Set getAllSymbolReferences()
Symbol
getAllSymbolReferences
in class Symbol
public java.util.Set getBasicArrayRefs()
Symbol
getBasicArrayRefs
in class Symbol
public java.util.List getItems()
Struct.Item
.public int addItem(Struct.Item i)
public boolean hasArrayReference()
public int addItem(java.lang.String name, Type type)