|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.llnl.babel.symbols.Symbol | +--gov.llnl.babel.symbols.Package
The Package
class describes a SIDL package naming scope.
Along with the standard SIDL identifier, metadata, and comment, it
contains a list of included symbols and their symbol type.
Field Summary |
Fields inherited from class gov.llnl.babel.symbols.Symbol |
CLASS, ENUM, INTERFACE, PACKAGE, s_type, SCOPE |
Constructor Summary | |
Package(SymbolID id,
Comment comment)
Create a new Package with the specified symbol identifier
and comment. |
|
Package(SymbolID id,
Comment comment,
Metadata metadata)
Create a new Package with the specified symbol identifier,
comment, and metadata. |
Method Summary | |
void |
addSymbol(SymbolID id,
int type)
Add a symbol to the list of local references for this package. |
java.util.Set |
getAllSymbolReferences()
Return the symbol references for the whole type hierarchy rooted with this symbol. |
java.util.Set |
getBasicArrayRefs()
Return an empty set. |
boolean |
getFinal()
Return true if and only if a package is final. |
java.util.Collection |
getOrderedSymbolReferences()
Return the symbols referenced by this package in an ordered Collection of |
java.lang.String |
getScopedName(java.lang.String name)
Convert the specified short name into a fully qualified name within this package scope. |
java.util.Set |
getSymbolReferences()
Return the symbols referenced by this package as a Set of
|
java.util.Map |
getSymbols()
Return the set of symbols referenced by this package. |
void |
setFinal(boolean isFinal)
|
Methods inherited from class gov.llnl.babel.symbols.Symbol |
addMetadata, getComment, getFullName, getMetadata, getSymbolID, getSymbolType, getSymbolTypeString, setComment |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Package(SymbolID id, Comment comment)
Package
with the specified symbol identifier
and comment.
public Package(SymbolID id, Comment comment, Metadata metadata)
Package
with the specified symbol identifier,
comment, and metadata.
Method Detail |
public void addSymbol(SymbolID id, int type)
public java.lang.String getScopedName(java.lang.String name)
public java.util.Set getSymbolReferences()
Set
of
getSymbolReferences
in class Symbol
public java.util.Set getAllSymbolReferences()
Symbol
getAllSymbolReferences
in class Symbol
public java.util.Collection getOrderedSymbolReferences()
Collection
of
public java.util.Set getBasicArrayRefs()
getBasicArrayRefs
in class Symbol
public java.util.Map getSymbols()
Map
is a SymbolID
and the value is its type
in integer form as defined in Symbol
.
public boolean getFinal()
true
if and only if a package is final.
If a package is final, it is non-reentrant; a non-final package is
reentrant.
public void setFinal(boolean isFinal)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |