public class CatchNode extends BaseStatementNode implements ICatchNode, IScopedNode
Modifier and Type | Field and Description |
---|---|
protected ParameterNode |
argumentNode
Argument of catch block (caught exception)
|
contentsNode
emptyNodeArray, parent
UNKNOWN
Constructor and Description |
---|
CatchNode(ParameterNode argumentNode)
Constructor
|
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.
|
IParameterNode |
getCatchParameterNode()
Returns the
IParameterNode that this catch node executes against |
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
|
IASScope |
getScope()
Get the scope associated with this node as an IASScope
|
getContentsNode, getStatementContentsNode, initBlockNode
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, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
protected ParameterNode argumentNode
public CatchNode(ParameterNode argumentNode)
public ASTNodeID getNodeID()
IASNode
public int getChildCount()
IASNode
getChildCount
in interface IASNode
getChildCount
in class NodeBase
public IASNode getChild(int i)
IASNode
protected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems)
public IParameterNode getCatchParameterNode()
ICatchNode
IParameterNode
that this catch node executes againstgetCatchParameterNode
in interface ICatchNode
IParameterNode
or nullpublic 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
importsCopyright © 2016 The Apache Software Foundation. All rights reserved.