jellyj.util
Class Symbol
- public class Symbol
Field Summary |
(package private) static IntegerStream | counter_d This hash table is used to map symbols to integer in
order to speed up lookups in the SymbolTable. |
(package private) Integer | key_d A unique id for this symbol. |
(package private) static Hashtable | mapping_d |
(package private) final static int | MAPPING_SIZE |
(package private) String | name_d The name of the symbol. |
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.
key_d
Integer key_d
- A unique id for this symbol. Used as a key in the
hash table.
mapping_d
static Hashtable mapping_d
MAPPING_SIZE
final static int MAPPING_SIZE
name_d
String name_d
- The name of the symbol. This is kept to avoid accessing
the hash table several times.
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)
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.
equals
public boolean equals(Object obj)
equals
public boolean equals(Symbol other)
equals
public boolean equals(String other)
hashCode
public int hashCode()
isQualified
public boolean isQualified()
nOfFields
public int nOfFields()
obtainKey
void obtainKey()
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.
toInternalString
public String toInternalString()
toString
public String toString()
to Class java.lang.Integer- A unique id for this symbol. Used as a key in the
hash table.
to Class java.lang.String
- The name of the symbol. This is kept to avoid accessing
the hash table several times.
to Class jellyj.util.IntegerStream
- This hash table is used to map symbols to integer in
order to speed up lookups in the SymbolTable.
to Class java.util.Hashtable