ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.parser
Class SymbolTable

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended bycom.elegantj.data.parser.SymbolTable
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class SymbolTable
extends java.util.Hashtable

A SymbolTable class represents the set of symbol's definations.

See Also:
Serialized Form

Nested Class Summary
 class SymbolTable.ColumnSymbol
          ColumnSymbol class represents the Column's value
 class SymbolTable.NullSymbol
          NullSymbol class represents the NULL value
 
Constructor Summary
SymbolTable()
          Creates a SymbolTable with empty set of symbol's definations.
 
Method Summary
 java.lang.Object addSymbol(java.lang.String symIdent_in, java.lang.Object symValue_in)
          Adds the symbol defination
 boolean containsSymbol(java.lang.Object symValue_in)
          Returns true if this symbol table maps one or more identifiers to this symbol value.
 boolean containsSymIdent(java.lang.String symIdent_in)
          Tests if the specified string is an identifier in this symbol table.
 java.lang.Object get(java.lang.Object key)
          Returns the value to which the specified key is mapped in this hashtable
 java.lang.Object removeSymbol(java.lang.String symIdent_in)
          Removes the symbol defination
 void setColumnSymbols(java.util.Vector columns, java.util.Vector values)
           
 java.util.Enumeration symbols()
          Returns an enumeration of the symbol definations in the symbol table
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SymbolTable

public SymbolTable()
Creates a SymbolTable with empty set of symbol's definations.

Method Detail

setColumnSymbols

public void setColumnSymbols(java.util.Vector columns,
                             java.util.Vector values)

addSymbol

public java.lang.Object addSymbol(java.lang.String symIdent_in,
                                  java.lang.Object symValue_in)
Adds the symbol defination

Parameters:
symIdent_in - identifier of the symbol
symValue_in - the value of the symbol

removeSymbol

public java.lang.Object removeSymbol(java.lang.String symIdent_in)
Removes the symbol defination

Parameters:
symIdent_in - identifier of the symbol

symbols

public java.util.Enumeration symbols()
Returns an enumeration of the symbol definations in the symbol table


containsSymIdent

public boolean containsSymIdent(java.lang.String symIdent_in)
Tests if the specified string is an identifier in this symbol table.

Parameters:
symIdent_in - the symbol identifier
Returns:
true if and only if the specified string is an identifier in this symbol table, as determined by the equals method; false otherwise

containsSymbol

public boolean containsSymbol(java.lang.Object symValue_in)
Returns true if this symbol table maps one or more identifiers to this symbol value.

Parameters:
symValue_in - the symbol value whose presence in this symbol table is to be tested
Returns:
true if this map maps one or more identifiers to the specified symbol value

get

public java.lang.Object get(java.lang.Object key)
Returns the value to which the specified key is mapped in this hashtable

Parameters:
key - a key in the hashtable.
Returns:
the value to which the key is mapped in this hashtable; null if the key is not mapped to any value in this hashtable.

ElegantJ Data Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.