Class WNameTable
java.lang.Object
com.fasterxml.aalto.util.NameTable
com.fasterxml.aalto.out.WNameTable
This is a symbol table implementation used for storing byte-based
WNames.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected WNameTablefindSymbol(String localName) findSymbol(String prefix, String localName) Finds and returns name matching the specified symbol, if such name already exists in the table; or if not, creates name object, adds to the table, and returns it.voidbooleanMethod called to check to quickly see if a child symbol table may have gotten additional entries.booleanvoidnuke()Method used by test code, to reset state of the name table.intsize()toString()
-
Constructor Details
-
WNameTable
protected WNameTable(int hashSize)
-
-
Method Details
-
createChild
-
mergeToParent
public boolean mergeToParent() -
nuke
public void nuke()Method used by test code, to reset state of the name table. -
size
-
maybeDirty
public boolean maybeDirty()Method called to check to quickly see if a child symbol table may have gotten additional entries. Used for checking to see if a child table should be merged into shared table.- Specified by:
maybeDirtyin classNameTable
-
findSymbol
- Throws:
XMLStreamException
-
findSymbol
Finds and returns name matching the specified symbol, if such name already exists in the table; or if not, creates name object, adds to the table, and returns it.- Throws:
XMLStreamException
-
toString
-
toDebugString
-