Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.javatools.parser.java.v2.model.statement
Interface SourceTryStatement

All Superinterfaces:
Element, SourceBlockElement, SourceCompoundStatement, SourceElement, SourceStatement

public interface SourceTryStatement
extends SourceCompoundStatement

A try statement. JLS3 14.20.


Field Summary
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.statement.SourceStatement
EMPTY_ARRAY
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
 
Method Summary
 java.util.List getCatchClauses()
           
 java.util.List getCaughtExceptions()
          Get the list of the exceptions caught in all the catch blocks
 SourceFinallyClause getFinallyClause()
           
 java.util.List getResourceVariables()
          Get the list of resource variables for the try, which is syntax new for JDK 7 and beyond
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.statement.SourceCompoundStatement
getControlExpression, getEndClause, getPrimaryClause
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.statement.SourceStatement
getStatementLabels, getStatementToken
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
addSelf, addSelf, addSelfAfter, addSelfBefore, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf
 

Method Detail

getResourceVariables

java.util.List getResourceVariables()
Get the list of resource variables for the try, which is syntax new for JDK 7 and beyond

Returns:
A list of SourceLocalVariableDeclarations which can be empty but will not be null

getCatchClauses

java.util.List getCatchClauses()
Returns:
The array of catch clauses. Returns a collection of SourceCatchClause's.

getFinallyClause

SourceFinallyClause getFinallyClause()
Returns:
The finally clause if present.

getCaughtExceptions

java.util.List getCaughtExceptions()
Get the list of the exceptions caught in all the catch blocks

Returns:
A list of JavaTypes which might be empty, but will not be null

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.