public class XglobalDeclTable extends Xnode
LHS, RHS, UNDEF_DEPTH
Constructor and Description |
---|
XglobalDeclTable(Xnode node)
Element standard ctor.
|
Modifier and Type | Method and Description |
---|---|
XglobalDeclTable |
cloneNode()
Clone the current element with all its children.
|
FfunctionDefinition |
getFunctionDefinition(java.lang.String fctName)
Retrieve function definition in the current declaration table or
recursively in the modules' declaration tables.
|
FmoduleDefinition |
getModuleDefinition(java.lang.String name)
Get a specific module declaration based on its name.
|
boolean |
hasDefinition(java.lang.String name)
Check if there is a definition for the given name.
|
boolean |
hasFunctionDefinition(java.lang.String name)
Check if there is a function definition for the given name.
|
boolean |
hasModuleDefinition(java.lang.String name)
Check if there is a module definition for the given name.
|
int |
size()
Get the number of declarations 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 XglobalDeclTable(Xnode node)
node
- Raw node.public int size()
public FmoduleDefinition getModuleDefinition(java.lang.String name)
name
- The name of the module to be returned.public FfunctionDefinition getFunctionDefinition(java.lang.String fctName)
fctName
- Function's name.public boolean hasModuleDefinition(java.lang.String name)
name
- Name to be searched.public boolean hasFunctionDefinition(java.lang.String name)
name
- Name to be searched.public boolean hasDefinition(java.lang.String name)
name
- Name to be searched.public XglobalDeclTable cloneNode()
Xnode