public class CatchNode extends BaseStatementNode implements ICatchNode, IScopedNode
| Modifier and Type | Field and Description |
|---|---|
protected ParameterNode |
argumentNode
Argument of catch block (caught exception)
|
contentsNodeemptyNodeArray, parentUNKNOWN| 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, initBlockNodeisTerminalbuildInnerString, 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, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartprotected ParameterNode argumentNode
public CatchNode(ParameterNode argumentNode)
public ASTNodeID getNodeID()
IASNodepublic int getChildCount()
IASNodegetChildCount in interface IASNodegetChildCount in class NodeBasepublic IASNode getChild(int i)
IASNodeprotected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems)
public IParameterNode getCatchParameterNode()
ICatchNodeIParameterNode that this catch node executes againstgetCatchParameterNode in interface ICatchNodeIParameterNode or nullpublic 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
importsCopyright © 2016 The Apache Software Foundation. All rights reserved.