public class WithNode extends ConditionalNode implements IWithNode, IScopedNode
conditionalNodecontentsNodeemptyNodeArray, parentUNKNOWN| 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, setConditionalExpressiongetContentsNode, getStatementContentsNodeisTerminalbuildInnerString, 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, 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, waitgetStatementContentsNodecontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartpublic WithNode(IASToken token)
token - The token representing the with keyword.public ASTNodeID getNodeID()
IASNodegetNodeID in interface IASNodegetNodeID in class ConditionalNodeprotected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems)
protected BlockNode initBlockNode()
initBlockNode in class BaseStatementNodepublic IASScope getScope()
IScopedNodegetScope in interface IScopedNodepublic void getAllImports(Collection<String> imports)
IScopedNodegetAllImports in interface IScopedNodeimports - an array of Strings representing all the importspublic void getAllImportNodes(Collection<IImportNode> imports)
IScopedNodegetAllImportNodes in interface IScopedNodeimports - an array of IImportNode representing all the
importspublic IExpressionNode getTargetNode()
IWithNodeIExpressionNode that contains the target expression
within this with statementgetTargetNode in interface IWithNodeIExpressionNode or nullCopyright © 2016 The Apache Software Foundation. All rights reserved.