gov.llnl.babel.symbols
Class Struct
java.lang.Object
   gov.llnl.babel.symbols.ASTNode
gov.llnl.babel.symbols.ASTNode
       gov.llnl.babel.symbols.SymbolID
gov.llnl.babel.symbols.SymbolID
           gov.llnl.babel.symbols.Symbol
gov.llnl.babel.symbols.Symbol
               gov.llnl.babel.symbols.Struct
gov.llnl.babel.symbols.Struct
- All Implemented Interfaces: 
- Attributes, IMetadata, java.lang.Comparable
- public class Struct 
- extends Symbol
The Struct contains a list of named types.
 
 
 
 
 
 
| Methods inherited from class gov.llnl.babel.symbols.Symbol | 
| addMetadata, getAttribute, getAttributes, getComment, getDepth, getMetadata, getSymbolID, getSymbolType, getSymbolTypeString, getUserSpecified, hasAttribute, isClass, isInterface, isPackage, isStruct, minimumDepth, removeAttribute, setAttribute, setAttribute, setComment, setUserSpecified | 
 
 
 
| Methods inherited from class java.lang.Object | 
| finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
 
| Methods inherited from interface java.lang.Comparable | 
| compareTo | 
 
Struct
public Struct(SymbolID id,
              Comment comment,
              Context context)
Struct
public Struct(SymbolID id,
              Comment comment,
              Metadata metadata,
              Context context)
hasType
public boolean hasType(int type)
- 
 
hasTypeEmbedded
public boolean hasTypeEmbedded(int type)
- 
 
getSymbolReferences
public java.util.Set getSymbolReferences()
- Description copied from class: Symbol
- Return the set of symbols (in the form of SymbolID)
 referenced by this particular symbol.  The return argument may be
 null if this symbol contains no external references.
 
- 
- Specified by:
- getSymbolReferencesin class- Symbol
 
- 
 
getAllSymbolReferences
public java.util.Set getAllSymbolReferences()
- Description copied from class: Symbol
- Return the symbol references for the whole type hierarchy rooted 
 with this symbol. For packages, this recurses down the package
 hierarchy.
 
- 
- Specified by:
- getAllSymbolReferencesin class- Symbol
 
- 
 
getBasicArrayRefs
public java.util.Set getBasicArrayRefs()
- Description copied from class: Symbol
- Return the set of all references to arrays of fundamental types.
 
- 
- Specified by:
- getBasicArrayRefsin class- Symbol
 
- 
 
getItems
public java.util.List getItems()
- 
- Returns:
- ordered list of items. Each element is an Struct.Item.
 
addItem
public int addItem(Struct.Item i)
- 
 
hasArrayReference
public boolean hasArrayReference()
- 
 
addItem
public int addItem(java.lang.String name,
                   Type type)
- Insert a new type and name into the  struct
 
- 
- Returns:
- new number of items in the struct
 
freeze
public void freeze()
- 
- Overrides:
- freezein class- Symbol
 
-