ariba.util.expr
Class SymbolTable

java.lang.Object
  extended by ariba.util.expr.SymbolTable

public class SymbolTable
extends java.lang.Object


Constructor Summary
SymbolTable()
           
 
Method Summary
 void addSymbol(Symbol symbol, SemanticRecord record)
           
 java.util.Set getAllContext()
           
 SemanticRecord getSymbolRecord(java.lang.String name, java.lang.Integer kind)
          Get the symbol based on the name or kind of the symbol.
 SemanticRecord getSymbolRecord(Symbol symbol)
           
 java.util.Collection getSymbolRecords(java.lang.Integer kind)
           
 java.util.List getSymbolRecordsForContext(java.lang.String ctxName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SymbolTable

public SymbolTable()
Method Detail

addSymbol

public void addSymbol(Symbol symbol,
                      SemanticRecord record)

getSymbolRecord

public SemanticRecord getSymbolRecord(Symbol symbol)

getSymbolRecord

public SemanticRecord getSymbolRecord(java.lang.String name,
                                      java.lang.Integer kind)
Get the symbol based on the name or kind of the symbol. The symbol kind is an integer defined in ariba.util.expr.Symbol. Note that the symbol table does not implementation scoping. This method should be used with care when using outside of expression evaluation.

Parameters:
name -
kind -
Returns:
A semantic record corresponding to the symbol
See Also:
Symbol

getSymbolRecords

public java.util.Collection getSymbolRecords(java.lang.Integer kind)

getSymbolRecordsForContext

public java.util.List getSymbolRecordsForContext(java.lang.String ctxName)

getAllContext

public java.util.Set getAllContext()


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.