|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.llnl.babel.symbols.SymbolID
The SymbolID
class represents the name of a symbol,
which consists of a fully qualified name (e.g., "SIDL.Object") and
a version number. The equals
and hashCode
members have been defined such that two symbol ids are considered
equal if they have the same version and string.
Constructor Summary | |
SymbolID(java.lang.String fully_qualified_name,
Version version)
The constructor for the SymbolID class takes a
fully qualified symbol name and a symbol version. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Compare this SymbolID with another one. |
boolean |
equals(java.lang.Object obj)
Two symbol identifiers are identical only if they have the same symbol identifiers and the same version. |
java.lang.String |
getFullName()
Return the fully qualified name of the symbol. |
java.lang.String |
getShortName()
Return the short, relative name of the symbol. |
java.lang.String |
getSymbolName()
Return the symbol name of the form "NAME-vVERSION". |
Version |
getVersion()
Return the version of the symbol. |
int |
hashCode()
Return the hash code of the symbol name as the hash value for a symbol identifier to facilitiate searching in hash tables. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SymbolID(java.lang.String fully_qualified_name, Version version)
SymbolID
class takes a
fully qualified symbol name and a symbol version.
Method Detail |
public java.lang.String getFullName()
public java.lang.String getShortName()
public Version getVersion()
public java.lang.String getSymbolName()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
SymbolID
with another one.
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |