| Modifier and Type | Field and Description |
|---|---|
static Role<CatchClause> |
CATCH_CLAUSE_ROLE |
static Role<BlockStatement> |
FINALLY_BLOCK_ROLE |
static TokenRole |
FINALLY_KEYWORD_ROLE |
static Role<BlockStatement> |
TRY_BLOCK_ROLE |
static TokenRole |
TRY_KEYWORD_ROLE |
static Role<VariableDeclarationStatement> |
TRY_RESOURCE_ROLE |
AST_NODE_USED_FLAGS, flagsCHILD_ITERATOR| Constructor and Description |
|---|
TryCatchStatement(int offset) |
| Modifier and Type | Method and Description |
|---|---|
<T,R> R |
acceptVisitor(IAstVisitor<? super T,? extends R> visitor,
T data) |
AstNodeCollection<CatchClause> |
getCatchClauses() |
BlockStatement |
getFinallyBlock() |
JavaTokenNode |
getFinallyToken() |
AstNodeCollection<VariableDeclarationStatement> |
getResources() |
BlockStatement |
getTryBlock() |
JavaTokenNode |
getTryToken() |
boolean |
matches(INode other,
Match match) |
void |
setFinallyBlock(BlockStatement value) |
void |
setTryBlock(BlockStatement value) |
clone, forPattern, getNextStatement, getNodeType, getOffset, getPreviousStatement, isEmbeddableaddChild, contains, contains, copyUserDataFrom, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getRole, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, match, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, toStringpublic static final TokenRole TRY_KEYWORD_ROLE
public static final Role<BlockStatement> TRY_BLOCK_ROLE
public static final Role<CatchClause> CATCH_CLAUSE_ROLE
public static final TokenRole FINALLY_KEYWORD_ROLE
public static final Role<BlockStatement> FINALLY_BLOCK_ROLE
public static final Role<VariableDeclarationStatement> TRY_RESOURCE_ROLE
public final JavaTokenNode getTryToken()
public final JavaTokenNode getFinallyToken()
public final AstNodeCollection<CatchClause> getCatchClauses()
public final AstNodeCollection<VariableDeclarationStatement> getResources()
public final BlockStatement getTryBlock()
public final void setTryBlock(BlockStatement value)
public final BlockStatement getFinallyBlock()
public final void setFinallyBlock(BlockStatement value)
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
acceptVisitor in class AstNode