org.sonar.plugins.java.api.tree
Interface TryStatementTree

All Superinterfaces:
StatementTree, Tree

@Beta
public interface TryStatementTree
extends StatementTree

'try' statement. JLS 14.20

   try block() catches() finally finallyBlock()
   try (resources()) block() catches() finally finallyBlock()
 

Since:
Java 1.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sonar.plugins.java.api.tree.Tree
Tree.Kind
 
Method Summary
 BlockTree block()
           
 List<CatchTree> catches()
           
 BlockTree finallyBlock()
           
 List<VariableTree> resources()
           
 
Methods inherited from interface org.sonar.plugins.java.api.tree.Tree
accept, is
 

Method Detail

resources

List<VariableTree> resources()
Since:
Java 1.7

block

BlockTree block()

catches

List<CatchTree> catches()

finallyBlock

@Nullable
BlockTree finallyBlock()


Copyright © 2012-2014 SonarSource. All Rights Reserved.