public interface ITryNode extends IStatementNode
try statement.
The shape of this node is:
ITryNode IBlockNode <-- getStatementContentsNode() ICatchNode <-- getCatchNode(0) ICatchNode <-- getCatchNode(1) ... ITerminalNode <-- getFinallyNode()For example,
try
{
...
}
catch (e:SomeError)
{
...
}
catch (e:Error)
{
...
}
finally
{
...
}
is represented as
ITryNode
IBlockNode
...
ICatchNode
IParameterNode
IIdentifierNode "e"
IIdentifierNode "Error"
IBlockNode
...
ICatchNode
IParameterNode
IIdentifierNode "e"
IIdentifierNode "Error"
IBlockNode
...
ITerminalNode "finally"
IBlockNode
...
UNKNOWN| Modifier and Type | Method and Description |
|---|---|
ICatchNode |
getCatchNode(int i)
Returns the
ith catch clause for this
try statement. |
int |
getCatchNodeCount()
Returns the number of
catch clauses for this
try statement. |
ITerminalNode |
getFinallyNode()
Returns the
finally clause of this try
statement. |
getStatementContentsNodecontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartint getCatchNodeCount()
catch clauses for this
try statement.ICatchNode getCatchNode(int i)
ith catch clause for this
try statement.ICatchNode or nullITerminalNode getFinallyNode()
finally clause of this try
statement.ITerminalNode or nullCopyright © 2016 The Apache Software Foundation. All rights reserved.