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
i th 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. |
getStatementContentsNode
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
int getCatchNodeCount()
catch
clauses for this
try
statement.ICatchNode getCatchNode(int i)
i
th catch
clause for this
try
statement.ICatchNode
or null
ITerminalNode getFinallyNode()
finally
clause of this try
statement.ITerminalNode
or null
Copyright © 2016 The Apache Software Foundation. All rights reserved.