public class WithNode extends ConditionalNode implements IWithNode, IScopedNode
conditionalNode
contentsNode
emptyNodeArray, parent
UNKNOWN
Modifier and Type | Method and Description |
---|---|
protected void |
analyze(EnumSet<PostProcessStep> set,
ASScope scope,
Collection<ICompilerProblem> problems) |
void |
getAllImportNodes(Collection<IImportNode> imports)
Returns all the imports that are relevant in the current scope.
|
void |
getAllImports(Collection<String> imports)
Returns all the imports that are relevant in the current scope.
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
IASScope |
getScope()
Get the scope associated with this node as an IASScope
|
IExpressionNode |
getTargetNode()
Returns the
IExpressionNode that contains the target expression
within this with statement |
protected BlockNode |
initBlockNode() |
getChild, getChildCount, getConditionalExpressionNode, getConditionalNode, setConditionalExpression
getContentsNode, getStatementContentsNode
isTerminal
buildInnerString, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, contains, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, getASScope, getContainingFilePath, getContainingNode, getContainingScope, getEnd, getFileScope, getFileSpecification, getInnerString, getNodeKind, getPackageName, getParent, getScopeNode, getSpanningStart, getStart, getSucceedingNode, getWorkspace, isTransparent, looselyContains, normalize, replaceChild, runPostProcess, setChildren, setParent, span, span, span, startAfter, startAfter, startBefore, startBefore, swapChildren, toString, tryGetOffsetLookup, verify
getColumn, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, span
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStatementContentsNode
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public WithNode(IASToken token)
token
- The token representing the with
keyword.public ASTNodeID getNodeID()
IASNode
getNodeID
in interface IASNode
getNodeID
in class ConditionalNode
protected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems)
protected BlockNode initBlockNode()
initBlockNode
in class BaseStatementNode
public IASScope getScope()
IScopedNode
getScope
in interface IScopedNode
public void getAllImports(Collection<String> imports)
IScopedNode
getAllImports
in interface IScopedNode
imports
- an array of Strings representing all the importspublic void getAllImportNodes(Collection<IImportNode> imports)
IScopedNode
getAllImportNodes
in interface IScopedNode
imports
- an array of IImportNode
representing all the
importspublic IExpressionNode getTargetNode()
IWithNode
IExpressionNode
that contains the target expression
within this with statementgetTargetNode
in interface IWithNode
IExpressionNode
or nullCopyright © 2016 The Apache Software Foundation. All rights reserved.