All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class espresso.util.Symbol

java.lang.Object
   |
   +----espresso.util.Symbol

public class Symbol
extends Object

Variable Index

 o counter_d
This hash table is used to map symbols to integer in order to speed up lookups in the SymbolTable.
 o key_d
A unique id for this symbol.
 o mapping_d
 o MAPPING_SIZE
 o name_d
The name of the symbol.

Constructor Index

 o Symbol(String)
 o Symbol(String, String)
 o Symbol(String, Symbol)
 o Symbol(Symbol, Integer, String)
 o Symbol(Symbol, Integer, Symbol)
 o Symbol(Symbol, String)
 o Symbol(Symbol, Symbol)

Method Index

 o baseName()
 o baseName(int)
Returns the path name of a symbol after skipping over a number of specified separators, i.e, nskip - 1.
 o equals(Object)
 o equals(String)
 o equals(Symbol)
 o hashCode()
 o isQualified()
 o nOfFields()
 o obtainKey()
 o pathName()
 o pathName(int)
Returns the path name of a symbol after skipping over a number of specified separators, i.e, nskip - 1.
 o toInternalString()
 o toString()

Variables

 o MAPPING_SIZE
 static final int MAPPING_SIZE
 o key_d
 Integer key_d
A unique id for this symbol. Used as a key in the hash table.

 o name_d
 String name_d
The name of the symbol. This is kept to avoid accessing the hash table several times.

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

 o mapping_d
 static Hashtable mapping_d

Constructors

 o Symbol
 public Symbol(String name)
 o Symbol
 public Symbol(Symbol prefix,
               String suffix)
 o Symbol
 public Symbol(String prefix,
               Symbol suffix)
 o Symbol
 public Symbol(Symbol prefix,
               Symbol suffix)
 o Symbol
 public Symbol(String prefix,
               String suffix)
 o Symbol
 public Symbol(Symbol prefix,
               Integer scope,
               Symbol suffix)
 o Symbol
 public Symbol(Symbol prefix,
               Integer scope,
               String suffix)

Methods

 o obtainKey
 void obtainKey()
 o nOfFields
 public int nOfFields()
 o isQualified
 public boolean isQualified()
 o baseName
 public String baseName()
 o 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.

 o pathName
 public String pathName()
 o 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.

 o equals
 public boolean equals(Object obj)
Overrides:
equals in class Object
 o equals
 public boolean equals(Symbol other)
 o equals
 public boolean equals(String other)
 o hashCode
 public int hashCode()
Overrides:
hashCode in class Object
 o toString
 public String toString()
Overrides:
toString in class Object
 o toInternalString
 public String toInternalString()

All Packages  Class Hierarchy  This Package  Previous  Next  Index