public class XsymbolTable extends Xnode
LHS, RHS, UNDEF_DEPTH
Constructor and Description |
---|
XsymbolTable(Xnode node)
Element standard ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Xid id)
Add a new symbols in the table.
|
void |
add(Xid id,
boolean clone)
Add a new symbols in the table.
|
XsymbolTable |
cloneNode()
Clone the current element with all its children.
|
boolean |
contains(java.lang.String id)
Check if an id is already present in the symbols table.
|
Xid |
get(java.lang.String key)
Get an Xid object in the symbols table based on its name value.
|
int |
size()
Get number of symbols in the table.
|
ancestor, append, append, body, child, children, cloneRawNode, compareFirstChildValues, compareOptionalValues, compareValues, constructRepresentation, copyAttribute, copyEnhancedInfo, delete, deleteWithSiblings, depth, element, equals, filename, findParentFunction, findParentModule, firstChild, getAttribute, getBooleanAttribute, getType, hasAttribute, hasBody, hashCode, hasSameParentBlock, insert, insert, insertAfter, insertBefore, isDeleted, isDirectSibling, isNestedIn, lastChild, lineNo, matchAll, matchAllAncestor, matchAllAncestor, matchAncestor, matchDescendant, matchDirectDescendant, matchDirectDescendant, matchSeq, matchSibling, nextSibling, opcode, prevSibling, removeAttribute, setAttribute, setBooleanAttribute, setFilename, setLine, setType, setValue, toString, value
public XsymbolTable(Xnode node)
node
- Raw node.public int size()
public void add(Xid id)
id
- The new Xid object to be added.public void add(Xid id, boolean clone)
id
- The new Xid object to be added.clone
- Tell whether the element is cloned before added or not. If
true the element is cloned.public Xid get(java.lang.String key)
key
- Name of the Xid to be returned.public boolean contains(java.lang.String id)
id
- String value of the id to check.public XsymbolTable cloneNode()
Xnode