com.bea.xml.stream.util
Class SymbolTable

java.lang.Object
  extended by com.bea.xml.stream.util.SymbolTable

public class SymbolTable
extends java.lang.Object

Maintains a table for namespace scope values = map from strings to stacks [a]->[value1,0],[value2,0] table = a stack of bindings


Constructor Summary
SymbolTable()
           
 
Method Summary
 void clear()
           
 void closeScope()
           
 java.lang.String get(java.lang.String name)
           
 java.util.Set getAll(java.lang.String name)
           
 int getDepth()
           
static void main(java.lang.String[] args)
           
 void openScope()
           
 void put(java.lang.String name, java.lang.String value)
           
 java.lang.String toString()
           
 boolean withinElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SymbolTable

public SymbolTable()
Method Detail

clear

public void clear()

getDepth

public int getDepth()

withinElement

public boolean withinElement()

put

public void put(java.lang.String name,
                java.lang.String value)

get

public java.lang.String get(java.lang.String name)

getAll

public java.util.Set getAll(java.lang.String name)

openScope

public void openScope()

closeScope

public void closeScope()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception