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.model.statement |
The parser model API for statements.
|
oracle.jdeveloper.java.util |
Public utilities for use with the java model, including the parser.
|
Modifier and Type | Method and Description |
---|---|
SourceStatement |
SourceFactory.createStatement(java.lang.String text)
|
abstract SourceStatement |
SourceFactory.createStatementFromText(java.lang.String text)
Attempts to create a statement with the given text.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FlowAnalysisListener.endStatement(SourceStatement statement)
End flow analysis of a statement.
|
boolean |
FlowAnalysisListener.startStatement(SourceStatement statement)
Start flow analysis of a statement.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SourceAssertStatement
An assert statement.
|
interface |
SourceBlockStatement
A BlockStatement is a final statement representing a statement that is (and only is) a block.
|
interface |
SourceBreakStatement
A break statement.
|
interface |
SourceCatchClause
A catch clause of a try statement.
|
interface |
SourceCompoundStatement
A CompoundStatement is a common base statement representing statements that have children statements.
|
interface |
SourceConditionalStatement
A ConditionalStatement is a common base statement representing compound statements having (requiring) a single expression of boolean type.
|
interface |
SourceContinueStatement
A continue statement.
|
interface |
SourceDoStatement
A do statement.
|
interface |
SourceElseClause
An else clause.
|
interface |
SourceEmptyStatement
An empty statement.
|
interface |
SourceExpressionStatement
An expression statement.
|
interface |
SourceFinallyClause
A finally clause.
|
interface |
SourceForStatement
A for statement.
|
interface |
SourceIfStatement
An if statement.
|
interface |
SourceReturnStatement
A return statement.
|
interface |
SourceSimpleStatement
A SimpleStatement is a common base statement representing a statement that has no child statement and may optionally have expressions.
|
interface |
SourceSwitchStatement
A switch statement.
|
interface |
SourceSynchStatement
A synchronized statement.
|
interface |
SourceThrowStatement
A throw statement.
|
interface |
SourceTryStatement
A try statement.
|
interface |
SourceWhileStatement
A while statement.
|
Modifier and Type | Field and Description |
---|---|
static SourceStatement[] |
SourceStatement.EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
SourceStatement |
SourceCompoundStatement.getEndClause()
In an if statement, this is the "else" clause.
|
SourceStatement |
SourceCompoundStatement.getPrimaryClause() |
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 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 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 SourceStatement |
SourceUtils.createReturn(SourceBlock block, java.lang.String stmtText)
Creates a return statement.
|
Modifier and Type | Method and Description |
---|---|
static SourceStatement |
SourceUtils.addStatement(SourceBlock block, SourceStatement stmt, SourceElement sibling, boolean before)
Inserts a statement to the block by the specified sibling.
|