public class VariableExpressionNode extends ExpressionNodeBase implements IVariableExpressionNode
for(var x:* in myArray)| Modifier and Type | Field and Description |
|---|---|
protected VariableNode |
variableNode
The variable that is contained within this expression
|
flagsemptyNodeArray, parentUNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
VariableExpressionNode(VariableExpressionNode other)
Copy constructor.
|
|
VariableExpressionNode(VariableNode variableNode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected VariableExpressionNode |
copy()
Copy the ExpressionNodeBase and its subtree.
|
IASNode |
getChild(int i)
Get a particular child of this node
|
int |
getChildCount()
Get the number of children
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
IVariableNode |
getTargetVariable() |
boolean |
isDynamicExpression(ICompilerProject project)
Does this expression evaluate to a dynamic value
|
void |
setTargetVariable(VariableNode variableNode)
Sets the target variable found within this expression.
|
computeNamespaceReference, copyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getMName, getParentExpression, hasParenthesis, inFilter, inWith, isPackageReference, normalize, resolve, resolveType, setHasParenthesisisTerminalanalyze, buildInnerString, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, contains, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, getContainingFilePath, getContainingNode, getContainingScope, getEnd, getFileScope, getFileSpecification, getInnerString, getNodeKind, getPackageName, getParent, getScopeNode, getSpanningStart, getStart, getSucceedingNode, getWorkspace, isTransparent, looselyContains, replaceChild, runPostProcess, setChildren, setParent, span, span, span, startAfter, startAfter, startBefore, startBefore, swapChildren, toString, tryGetOffsetLookup, verifygetColumn, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, spanclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopyForInitializer, hasParenthesis, resolve, resolveTypecontains, getAncestorOfType, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartprotected VariableNode variableNode
public VariableExpressionNode(VariableNode variableNode)
variableNode - The node representing the variable declaration.protected VariableExpressionNode(VariableExpressionNode other)
other - The node to copy.public ASTNodeID getNodeID()
IASNodepublic int getChildCount()
IASNodegetChildCount in interface IASNodegetChildCount in class NodeBasepublic IASNode getChild(int i)
IASNodeprotected VariableExpressionNode copy()
ExpressionNodeBasecopy in class ExpressionNodeBasepublic boolean isDynamicExpression(ICompilerProject project)
IExpressionNodeisDynamicExpression in interface IExpressionNodeisDynamicExpression in class ExpressionNodeBaseproject - The ICompilerProject to use to do lookups.true if we evaluate to something dynamicpublic IVariableNode getTargetVariable()
getTargetVariable in interface IVariableExpressionNodeIVariableNode context.public void setTargetVariable(VariableNode variableNode)
variableNode - a variable nodeCopyright © 2016 The Apache Software Foundation. All rights reserved.