Package | Description |
---|---|
oracle.javatools.parser.java.v2 |
The parser API.
|
oracle.javatools.parser.java.v2.model.statement |
The parser model API for statements.
|
oracle.javatools.parser.java.v2.util |
Various utilities for use with the parser.
|
oracle.jdeveloper.java.util |
Public utilities for use with the java model, including the parser.
|
Modifier and Type | Method and Description |
---|---|
abstract SourceTryStatement |
SourceFactory.createTryCatchFinallyStatement(SourceBlockStatement tryClause, SourceCatchParameter parameter, SourceBlockStatement catchClause, SourceBlockStatement finallyClause)
Creates a try-catch-finally statement with a single catch clause.
|
abstract SourceTryStatement |
SourceFactory.createTryCatchFinallyStatement(SourceBlockStatement tryClause, SourceFormalParameterList parameters, SourceBlockStatement catchClause, SourceBlockStatement finallyClause)
Deprecated.
Use createTryCatchFinallyStatement( SourceBlockStatement, SourceCatchParameter, SourceBlockStatement, SourceBlockStatement instead
|
SourceTryStatement |
SourceFactory.createTryCatchFinallyStatement(SourceBlockStatement tryClause, SourceFormalParameter parameter, SourceBlockStatement catchClause, SourceBlockStatement finallyClause)
Deprecated.
Use createTryCatchFinallyStatement( SourceBlockStatement, SourceCatchParameter, SourceBlockStatement, SourceBlockStatement instead
|
SourceTryStatement |
SourceFactory.createTryCatchFinallyStatement(SourceBlockStatement tryClause, SourceLocalVariable parameter, SourceBlockStatement catchClause, SourceBlockStatement finallyClause)
Deprecated.
Use createTryCatchFinallyStatement( SourceBlockStatement, SourceCatchParameter, SourceBlockStatement, SourceBlockStatement instead
|
abstract SourceTryStatement |
SourceFactory.createTryCatchStatement(SourceBlockStatement tryClause, SourceCatchParameter parameter, SourceBlockStatement catchClause)
Creates a try-catch statement with a single catch clause.
|
abstract SourceTryStatement |
SourceFactory.createTryCatchStatement(SourceBlockStatement tryClause, SourceFormalParameterList parameters, SourceBlockStatement catchClause)
Deprecated.
Use createTryCatchStatement( SourceBlockStatement, SourceCatchParameter, SourceBlockStatement ) instead
|
SourceTryStatement |
SourceFactory.createTryCatchStatement(SourceBlockStatement tryClause, SourceFormalParameter parameter, SourceBlockStatement catchClause)
Deprecated.
Use createTryCatchStatement( SourceBlockStatement, SourceCatchParameter, SourceBlockStatement ) instead
|
SourceTryStatement |
SourceFactory.createTryCatchStatement(SourceBlockStatement tryClause, SourceLocalVariable parameter, SourceBlockStatement catchClause)
Deprecated.
Use createTryCatchStatement( SourceBlockStatement, SourceCatchParameter, SourceBlockStatement ) instead
|
abstract SourceTryStatement |
SourceFactory.createTryFinallyStatement(SourceBlockStatement child, SourceBlockStatement finallyClause)
Creates a try-finally statement.
|
abstract SourceTryStatement |
SourceFactory.createTryStatement(SourceBlockStatement tryClause, SourceCatchClause[] catchClauses, SourceFinallyClause finallyClause)
Creates a try, try-catch, try-catch-finally, or a try-finally statement.
|
Modifier and Type | Method and Description |
---|---|
SourceTryStatement |
SourceFinallyClause.getOwningTry() |
SourceTryStatement |
SourceCatchClause.getOwningTry() |
Modifier and Type | Method and Description |
---|---|
void |
SourceVisitor.whenEnterTryStatement(SourceTryStatement sourceTryStatement) |
void |
SourceVisitor.whenExitTryStatement(SourceTryStatement sourceTryStatement) |
Modifier and Type | Method and Description |
---|---|
static SourceTryStatement |
SourceUtils.addTryCatchStatement(SourceBlock block, SourceBlock tryBlock, java.lang.String catchType, java.lang.String catchName, SourceBlock catchBlock)
Adds a try/catch statement to the block, using the given catch text.
|
static SourceTryStatement |
SourceUtils.createTryCatchStatement(SourceBlock block, SourceBlock tryBlock, java.lang.String catchType, java.lang.String catchName, SourceBlock catchBlock)
Creates a try/catch statement to the block, using the given catch text.
|
Modifier and Type | Method and Description |
---|---|
static SourceCatchClause |
SourceUtils.addCatchClause(SourceTryStatement tryStmt, java.lang.String catchType, java.lang.String catchName, SourceBlock catchBlock)
Adds a catch clause to the block, usin gthe given catch info.
|
static SourceFinallyClause |
SourceUtils.addFinallyClause(SourceTryStatement tryStmt, SourceBlock finallyBlock)
Adds a finally clause to the try statement, using the given block
|
static SourceBlock |
SourceUtils.getFinallyBlock(SourceTryStatement tryStatement)
Fetch the SourceBlock for the finally clause of a try-finally.
|