public class TryStatementTreeImpl extends JavaTree implements TryStatementTree
JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl
grammarRuleKey
Constructor and Description |
---|
TryStatementTreeImpl(InternalSyntaxToken finallyKeyword,
BlockTreeImpl finallyBlock) |
TryStatementTreeImpl(InternalSyntaxToken tryToken,
InternalSyntaxToken openParenToken,
ResourceListTreeImpl resources,
InternalSyntaxToken closeParenToken,
BlockTreeImpl block,
List<CatchTreeImpl> catches) |
TryStatementTreeImpl(List<CatchTreeImpl> catches,
InternalSyntaxToken finallyKeyword,
BlockTreeImpl finallyBlock) |
Modifier and Type | Method and Description |
---|---|
void |
accept(TreeVisitor visitor) |
BlockTree |
block() |
List<CatchTree> |
catches() |
Iterable<Tree> |
children()
Creates iterable for children of this node.
|
SyntaxToken |
closeParenToken() |
TryStatementTreeImpl |
completeStandardTry(InternalSyntaxToken tryToken,
BlockTreeImpl block) |
TryStatementTreeImpl |
completeTryWithResources(InternalSyntaxToken tryToken,
InternalSyntaxToken openParenToken,
ResourceListTreeImpl resources,
InternalSyntaxToken closeParenToken,
BlockTreeImpl block,
List<CatchTreeImpl> catches) |
TryStatementTreeImpl |
completeWithCatches(List<CatchTreeImpl> catches) |
BlockTree |
finallyBlock() |
SyntaxToken |
finallyKeyword() |
Tree.Kind |
kind() |
SyntaxToken |
openParenToken() |
ListTree<VariableTree> |
resources() |
SyntaxToken |
tryKeyword() |
getChildren, getGrammarRuleKey, getLine, is, isLeaf, parent, setParent
public TryStatementTreeImpl(List<CatchTreeImpl> catches, @Nullable InternalSyntaxToken finallyKeyword, @Nullable BlockTreeImpl finallyBlock)
public TryStatementTreeImpl(InternalSyntaxToken finallyKeyword, BlockTreeImpl finallyBlock)
public TryStatementTreeImpl(InternalSyntaxToken tryToken, InternalSyntaxToken openParenToken, ResourceListTreeImpl resources, InternalSyntaxToken closeParenToken, BlockTreeImpl block, List<CatchTreeImpl> catches)
public TryStatementTreeImpl completeWithCatches(List<CatchTreeImpl> catches)
public TryStatementTreeImpl completeStandardTry(InternalSyntaxToken tryToken, BlockTreeImpl block)
public TryStatementTreeImpl completeTryWithResources(InternalSyntaxToken tryToken, InternalSyntaxToken openParenToken, ResourceListTreeImpl resources, InternalSyntaxToken closeParenToken, BlockTreeImpl block, List<CatchTreeImpl> catches)
public SyntaxToken tryKeyword()
tryKeyword
in interface TryStatementTree
@Nullable public SyntaxToken openParenToken()
openParenToken
in interface TryStatementTree
public ListTree<VariableTree> resources()
resources
in interface TryStatementTree
@Nullable public SyntaxToken closeParenToken()
closeParenToken
in interface TryStatementTree
public BlockTree block()
block
in interface TryStatementTree
public List<CatchTree> catches()
catches
in interface TryStatementTree
@Nullable public SyntaxToken finallyKeyword()
finallyKeyword
in interface TryStatementTree
@Nullable public BlockTree finallyBlock()
finallyBlock
in interface TryStatementTree
public void accept(TreeVisitor visitor)
Copyright © 2012–2016 SonarSource. All rights reserved.