gov.llnl.babel.symbols
Class SymbolID

java.lang.Object
  |
  +--gov.llnl.babel.symbols.SymbolID

public class SymbolID
extends java.lang.Object

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
 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

SymbolID

public 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 Detail

getFullName

public java.lang.String getFullName()
Return the fully qualified name of the symbol.


getShortName

public java.lang.String getShortName()
Return the short, relative name of the symbol.


getVersion

public Version getVersion()
Return the version of the symbol.


getSymbolName

public java.lang.String getSymbolName()
Return the symbol name of the form "NAME-vVERSION".


hashCode

public int hashCode()
Return the hash code of the symbol name as the hash value for a symbol identifier to facilitiate searching in hash tables.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Two symbol identifiers are identical only if they have the same symbol identifiers and the same version.

Overrides:
equals in class java.lang.Object