| Package | Description | 
|---|---|
| oracle.javatools.parser.java.v2 | 
 The parser API. 
 | 
| oracle.javatools.parser.java.v2.model | 
 The parser model API. 
 | 
| oracle.javatools.parser.java.v2.util | 
 Various utilities for use with the parser. 
 | 
| oracle.jdeveloper.engine | |
| oracle.jdeveloper.java.legacy | 
 Used for migrating legacy java model code to the current version. 
 | 
| oracle.jdeveloper.java.util | 
 Public utilities for use with the java model, including the parser. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SourceBlock | 
SourceFactory.createBlock()
Creates an empty code block. 
 | 
abstract SourceBlock | 
SourceFactory.createBlock(SourceElement[] elements)
Creates a code block. 
 | 
SourceBlock | 
SourceFactory.createBlock(java.lang.String text)
 | 
abstract SourceBlock | 
SourceFactory.createBlockFromText(java.lang.String text)
Attempts to create a block with the given text. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
abstract SourceBlockStatement | 
SourceFactory.createBlockStatement(SourceBlock block)
Creates a block statement. 
 | 
abstract SourceClassInitializer | 
SourceFactory.createClassInitializer(int modifiers, SourceBlock block)
Creates a class initializer. 
 | 
SourceMethod | 
SourceFactory.createConstructor(SourceFormalParameterList parameters, SourceThrowsClause throwsClause, SourceBlock block)
Creates a constructor declaration. 
 | 
abstract SourceMethod | 
SourceFactory.createConstructor(SourceTypeParameter[] typeParameters, SourceFormalParameterList parameters, SourceThrowsClause throwsClause, SourceBlock block)
Creates a constructor declaration. 
 | 
SourceClassInitializer | 
SourceFactory.createInstanceInitializer(SourceBlock block)
Creates an instance class initializer. 
 | 
abstract SourceMethod | 
SourceFactory.createMethod(SourceTypeParameter[] tyParameters, SourceTypeReference returnType, java.lang.String methodName, SourceFormalParameterList parameters, SourceThrowsClause throwsClause, SourceBlock block)
Creates a method declaration. 
 | 
SourceMethod | 
SourceFactory.createMethod(SourceTypeReference returnType, java.lang.String methodName, SourceFormalParameterList parameters, SourceThrowsClause throwsClause, SourceBlock block)
Creates a non-generic method declaration. 
 | 
SourceClassInitializer | 
SourceFactory.createStaticInitializer(SourceBlock block)
Creates a static class initializer. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SourceBlock | 
SourceHasBlock.getBlock()
Gets the declared code block, null if none. 
 | 
SourceBlock | 
SourceLocalVariable.getOwningBlock()
Gets the owning block. 
 | 
SourceBlock | 
SourceFormalParameter.getOwningBlock()
Gets the block that this formal parameter may be used from. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
FlowAnalysisListener.endBlock(SourceBlock sym)
End flow analysis of a block. 
 | 
void | 
SourceHasBlock.setBlock(SourceBlock block)
Attempts to set the code block associated with this element. 
 | 
boolean | 
FlowAnalysisListener.startBlock(SourceBlock sym)
Start flow analysis of a block, which is the time to get the local variables of that block by calling SourceBlock.getLocalVariables(). 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
SourceVisitor.whenEnterBlock(SourceBlock sourceBlock)  | 
void | 
SourceVisitor.whenExitBlock(SourceBlock sourceBlock)  | 
| Modifier and Type | Method and Description | 
|---|---|
static SourceBlock | 
EngineUtils.createTryCatchClause(SourceFile srcFile, SourceFactory factory, SourceBlock codeBlock, java.lang.String[] exceptions)  | 
| Modifier and Type | Method and Description | 
|---|---|
SourceMethod | 
MethodInfo.createSourceConstructor(SourceFile srcFile, SourceBlock srcBlock)
Helper method for creating a new SourceMethod from a MethodInfo. 
 | 
SourceMethod | 
MethodInfo.createSourceMethod(SourceFile srcFile, SourceBlock srcBlock)
Helper method for creating a new SourceMethod from a MethodInfo. 
 | 
static SourceBlock | 
EngineUtils.createTryCatchClause(SourceFile srcFile, SourceFactory factory, SourceBlock codeBlock, java.lang.String[] exceptions)  | 
| Modifier and Type | Method and Description | 
|---|---|
static SourceExpression[] | 
Jot2Utils.getMethodCalls(SourceBlock jCodeBlock, java.lang.String name)  | 
| Modifier and Type | Method and Description | 
|---|---|
static SourceBlock | 
SourceUtils.createBlock(SourceElement element)
Create a new empty block. 
 | 
static SourceBlock | 
SourceUtils.getFinallyBlock(SourceTryStatement tryStatement)
Fetch the SourceBlock for the finally clause of a try-finally. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static SourceStatement | 
SourceUtils.addAssignStatement(SourceBlock block, java.lang.String lhsName, SourceExpression rhsExpr)
Adds (append) an assignment statement (=) to the block. 
 | 
static SourceStatement | 
SourceUtils.addAssignStatement(SourceBlock block, java.lang.String lhsName, java.lang.String rhsText)
Adds (append) an assignment statement (=) to the block. 
 | 
static void | 
SourceUtils.addBlankLine(SourceBlock block)
Adds (append) a blank line to the block. 
 | 
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 SourceStatement | 
SourceUtils.addExpressionStatement(SourceBlock block, SourceExpression expr)
Adds (append) an expression as a statement to the block. 
 | 
static SourceStatement | 
SourceUtils.addExpressionStatement(SourceBlock block, SourceExpression expr, SourceElement sibling, boolean before)
Inserts an expression as a statement to the block by the specified sibling. 
 | 
static SourceStatement | 
SourceUtils.addExpressionStatement(SourceBlock block, java.lang.String exprText)
Adds (append) an expression as a statement to the block. 
 | 
static SourceStatement | 
SourceUtils.addExpressionStatement(SourceBlock block, java.lang.String exprText, SourceElement sibling, boolean before)
Inserts an expression as a statement to the block by the specified sibling. 
 | 
static SourceFinallyClause | 
SourceUtils.addFinallyClause(SourceTryStatement tryStmt, SourceBlock finallyBlock)
Adds a finally clause to the try statement, using the given block 
 | 
static SourceIfStatement | 
SourceUtils.addIfElseStatement(SourceBlock block, java.lang.String condition, SourceBlock ifBlock, SourceBlock elseBlock)
Adds an if/else statement to the block, using the given condition and if/else blocks. 
 | 
static SourceIfStatement | 
SourceUtils.addIfStatement(SourceBlock block, java.lang.String condition, SourceBlock ifBlock)
Adds an if statement to the block, using the given condition and if block. 
 | 
static void | 
SourceUtils.addLineComment(SourceBlock block, java.lang.String commentText)
Adds (append) a line comment to the block. 
 | 
static SourceVariableDeclaration | 
SourceUtils.addLocalVariableDeclaration(SourceBlock block, java.lang.String type, java.lang.String name, SourceExpression initExpr)
Adds (append) a local variable declaration to the given block. 
 | 
static SourceVariableDeclaration | 
SourceUtils.addLocalVariableDeclaration(SourceBlock block, java.lang.String type, java.lang.String name, java.lang.String initText)
Adds (append) a local variable declaration to the given block. 
 | 
static SourceStatement | 
SourceUtils.addMethodCallStatement(SourceBlock block, java.lang.String lhs, java.lang.String methodName, SourceExpression[] args)
Adds a method call invocation as a statement to the block. 
 | 
static SourceStatement | 
SourceUtils.addMethodCallStatement(SourceBlock block, java.lang.String lhs, java.lang.String methodName, java.lang.String[] args)
Adds a method call invocation as a statement to the block. 
 | 
static SourceStatement | 
SourceUtils.addReturn(SourceBlock block, java.lang.String stmtText)
Adds (append) a return statement to the given block. 
 | 
static SourceStatement | 
SourceUtils.addStatement(SourceBlock block, SourceStatement stmt, SourceElement sibling, boolean before)
Inserts a statement to the block by the specified sibling. 
 | 
static SourceStatement | 
SourceUtils.addStatement(SourceBlock block, java.lang.String stmtText)
Adds (append) a statement to the block. 
 | 
static SourceClassInitializer | 
SourceUtils.addStaticClassInitializer(SourceClass cls, SourceBlock block)
Adds (append) a static class initializer to the class. 
 | 
static SourceSwitchLabel | 
SourceUtils.addSwitchCaseLabel(SourceBlock switchBlock, java.lang.String caseText)
Add a case label to a switch block. 
 | 
static SourceSwitchStatement | 
SourceUtils.addSwitchStatement(SourceBlock block, java.lang.String switchText, SourceBlock switchBlock)
Add a switch statement to the block. 
 | 
static SourceThrowStatement | 
SourceUtils.addThrowStatement(SourceBlock block, java.lang.String throwText)
Adds a throw statement to the block, using the given throw text. 
 | 
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 SourceWhileStatement | 
SourceUtils.addWhileStatement(SourceBlock block, java.lang.String condition, SourceBlock whileBlock)
Adds a while statement to the block, using the given condition and while block. 
 | 
static SourceExpression | 
SourceUtils.createAssign(SourceBlock block, java.lang.String lhsName, java.lang.String rhsText)
Adds (append) an assignment statement (=) to the block. 
 | 
static SourceExpression | 
SourceUtils.createMethodCall(SourceBlock block, java.lang.String lhs, java.lang.String methodName, SourceExpression[] args)
Creates an expression that is a method invocation. 
 | 
static SourceExpression | 
SourceUtils.createMethodCall(SourceBlock block, java.lang.String lhs, java.lang.String methodName, java.lang.String[] args)
Creates an expression that is a method invocation. 
 | 
static SourceStatement | 
SourceUtils.createReturn(SourceBlock block, java.lang.String stmtText)
Creates a return statement. 
 | 
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. 
 |