Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


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<SourceCatchClause> getCatchClauses()
           
 java.util.List<JavaType> getCaughtExceptions()
          Get the list of the exceptions caught in all the catch blocks
 SourceFinallyClause getFinallyClause()
           
 java.util.List<SourceLocalVariableDeclaration> 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, adjustTextIndentation, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, hasErrors, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf

 

Method Detail

getResourceVariables

java.util.List<SourceLocalVariableDeclaration> getResourceVariables()
Get the list of resource variables for the try, which is syntax new for JDK 7 and beyond
Returns:
A list of variables which can be empty but will not be null

getCatchClauses

java.util.List<SourceCatchClause> 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<JavaType> 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

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


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