All Packages Class Hierarchy This Package Previous Next Index
Class espresso.util.Symbol
java.lang.Object
|
+----espresso.util.Symbol
- public class Symbol
- extends Object
-
counter_d
- This hash table is used to map symbols to integer in
order to speed up lookups in the SymbolTable.
-
key_d
- A unique id for this symbol.
-
mapping_d
-
-
MAPPING_SIZE
-
-
name_d
- The name of the symbol.
-
Symbol(String)
-
-
Symbol(String, String)
-
-
Symbol(String, Symbol)
-
-
Symbol(Symbol, Integer, String)
-
-
Symbol(Symbol, Integer, Symbol)
-
-
Symbol(Symbol, String)
-
-
Symbol(Symbol, Symbol)
-
-
baseName()
-
-
baseName(int)
- Returns the path name of a symbol after skipping over a number of
specified separators, i.e, nskip - 1.
-
equals(Object)
-
-
equals(String)
-
-
equals(Symbol)
-
-
hashCode()
-
-
isQualified()
-
-
nOfFields()
-
-
obtainKey()
-
-
pathName()
-
-
pathName(int)
- Returns the path name of a symbol after skipping over a number of
specified separators, i.e, nskip - 1.
-
toInternalString()
-
-
toString()
-
MAPPING_SIZE
static final int MAPPING_SIZE
key_d
Integer key_d
- A unique id for this symbol. Used as a key in the
hash table.
name_d
String name_d
- The name of the symbol. This is kept to avoid accessing
the hash table several times.
counter_d
static IntegerStream counter_d
- This hash table is used to map symbols to integer in
order to speed up lookups in the SymbolTable.
mapping_d
static Hashtable mapping_d
Symbol
public Symbol(String name)
Symbol
public Symbol(Symbol prefix,
String suffix)
Symbol
public Symbol(String prefix,
Symbol suffix)
Symbol
public Symbol(Symbol prefix,
Symbol suffix)
Symbol
public Symbol(String prefix,
String suffix)
Symbol
public Symbol(Symbol prefix,
Integer scope,
Symbol suffix)
Symbol
public Symbol(Symbol prefix,
Integer scope,
String suffix)
obtainKey
void obtainKey()
nOfFields
public int nOfFields()
isQualified
public boolean isQualified()
baseName
public String baseName()
baseName
public String baseName(int nskip)
- Returns the path name of a symbol after skipping over a number of
specified separators, i.e, nskip - 1.
pathName
public String pathName()
pathName
public String pathName(int nskip)
- Returns the path name of a symbol after skipping over a number of
specified separators, i.e, nskip - 1.
equals
public boolean equals(Object obj)
- Overrides:
- equals in class Object
equals
public boolean equals(Symbol other)
equals
public boolean equals(String other)
hashCode
public int hashCode()
- Overrides:
- hashCode in class Object
toString
public String toString()
- Overrides:
- toString in class Object
toInternalString
public String toInternalString()
All Packages Class Hierarchy This Package Previous Next Index