com.bea.xml.stream.util
Class SymbolTable
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SymbolTable
public SymbolTable()
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