jellyj.util
Class Symbol


public class Symbol


Field Summary
 (package private) static IntegerStreamcounter_d
          This hash table is used to map symbols to integer in order to speed up lookups in the SymbolTable.
 (package private) Integerkey_d
          A unique id for this symbol.
 (package private) static Hashtablemapping_d
           
 (package private) final static intMAPPING_SIZE
           
 (package private) Stringname_d
          The name of the symbol.

Constructor Summary
Symbol(String name)
           
Symbol(Symbol prefix, String suffix)
           
Symbol(String prefix, Symbol suffix)
           
Symbol(Symbol prefix, Symbol suffix)
           
Symbol(String prefix, String suffix)
           
Symbol(Symbol prefix, Integer scope, Symbol suffix)
           
Symbol(Symbol prefix, Integer scope, String suffix)
           

Method Summary
 StringbaseName()
           
 StringbaseName(int nskip)
          Returns the path name of a symbol after skipping over a number of specified separators, i.e, nskip - 1.
 booleanequals(Object obj)
           
 booleanequals(Symbol other)
           
 booleanequals(String other)
           
 inthashCode()
           
 booleanisQualified()
           
 intnOfFields()
           
 (package private) voidobtainKey()
           
 StringpathName()
           
 StringpathName(int nskip)
          Returns the path name of a symbol after skipping over a number of specified separators, i.e, nskip - 1.
 StringtoInternalString()
           
 StringtoString()
           

Field Detail

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.
Constructor Detail

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)
Method Detail

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

Association Links

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