public class AssignStatement extends Xnode
LHS, RHS, UNDEF_DEPTH
Constructor and Description |
---|
AssignStatement(org.w3c.dom.Element element)
Constructs an Xnode object from an element in the AST.
|
Modifier and Type | Method and Description |
---|---|
Xnode |
getLhs()
Get the left hand-side node of the assignment.
|
java.lang.String |
getLhsName()
Get the variable name on the left hand-side of the assignment.
|
java.util.Set<java.lang.String> |
getVarRefNames()
Get list of array variable names used in assignment statement.
|
boolean |
isChildOf(Xcode opcode)
Check if the current assignment statement is a child of a give type of
node.
|
ancestor, append, append, body, child, children, cloneNode, 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 AssignStatement(org.w3c.dom.Element element)
element
- Base element for the Xnode object.public java.lang.String getLhsName()
public Xnode getLhs()
public boolean isChildOf(Xcode opcode)
opcode
- Opcode of the ancestor to check for.public java.util.Set<java.lang.String> getVarRefNames()