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.expression |
The parser model API for expressions.
|
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.
|
Modifier and Type | Method and Description |
---|---|
SourceListExpression |
SourceFactory.createArgumentList()
Creates an empty argument list; should not be used
for the creation of array constants.
|
SourceListExpression |
SourceFactory.createArgumentList(SourceExpression arg)
Creates an argument list with one argument; should not be used
for the creation of array constants.
|
SourceListExpression |
SourceFactory.createArgumentList(SourceExpression[] arguments)
Creates an argument list; should not be used
for the creation of array constants.
|
abstract SourceListExpression |
SourceFactory.createArrayConstant(SourceExpression[] operands)
Creates an array constant.
|
SourceListExpression |
SourceFactory.createExpressionList()
Creates a list expression; should not be used
for the creation of array constants.
|
SourceListExpression |
SourceFactory.createExpressionList(SourceExpression argument)
Creates a list expression with one element; should not be used
for the creation of array constants.
|
abstract SourceListExpression |
SourceFactory.createExpressionList(SourceExpression[] arguments)
Creates a list expression; should not be used
for the creation of array constants.
|
Modifier and Type | Method and Description |
---|---|
abstract SourceAnnotation |
SourceFactory.createAnnotation(SourceTypeReference type,
SourceListExpression arguments)
Creates an annotation (but not an annotation type), e.g.
|
abstract SourceAnnotation |
SourceFactory.createAnnotation(java.lang.String name,
SourceListExpression arguments)
Creates an annotation (but not an annotation type), e.g.
|
abstract SourceArrayAccessExpression |
SourceFactory.createArrayAccess(SourceExpression lhs,
SourceListExpression dereferences)
Creates an array access.
|
SourceNewClassExpression |
SourceFactory.createClassCreator(SourceExpression lhs,
SourceTypeReference type,
SourceListExpression arguments,
SourceClassBody body)
Deprecated.
Use createNewClassExpression(SSSS).
|
abstract SourceEnumConstant |
SourceFactory.createEnumConstant(java.lang.String name,
SourceListExpression arguments,
SourceClassBody body)
Creates an enum constant.
|
abstract SourceForStatement |
SourceFactory.createForStatement(SourceListExpression initializations,
SourceExpression condition,
SourceListExpression updates,
SourceStatement child)
Creates a traditional for loop with no variable declarators.
|
abstract SourceForStatement |
SourceFactory.createForVariableStatement(SourceLocalVariableDeclaration variables,
SourceExpression condition,
SourceListExpression updates,
SourceStatement child)
Creates a traditional for loop with variable declarations.
|
abstract SourceMethodCallExpression |
SourceFactory.createMethodCall(SourceExpression lhs,
SourceTypeArgument[] typeArguments,
java.lang.String name,
SourceListExpression arguments)
Creates a method call.
|
SourceMethodCallExpression |
SourceFactory.createMethodCall(SourceExpression lhs,
java.lang.String name,
SourceListExpression arguments)
Creates a method call.
|
protected abstract SourceNewArrayExpression |
SourceFactory.createNewArrayExpressionImpl(SourceTypeReference type,
SourceListExpression list,
int requiredListCode)
Creates a new array expression.
|
abstract SourceNewClassExpression |
SourceFactory.createNewClassExpression(SourceExpression lhs,
SourceTypeReference type,
SourceListExpression arguments,
SourceClassBody body)
Creates a class creator.
|
SourceNewArrayExpression |
SourceFactory.createNewInitializedArrayExpression(SourceTypeReference type,
SourceListExpression arrayconst)
Creates a new array expression of the form new Foo[] { bar }.
|
SourceNewArrayExpression |
SourceFactory.createNewUninitializedArrayExpression(SourceTypeReference type,
SourceListExpression args)
Creates a new array expression of the form new Foo[1].
|
Modifier and Type | Method and Description |
---|---|
SourceListExpression |
SourceAnnotation.getArgumentList()
Gets the argument list.
|
SourceListExpression |
SourceEnumConstant.getArguments()
Gets the constructor invocation arguments, null if none.
|
Modifier and Type | Method and Description |
---|---|
void |
SourceEnumConstant.setArguments(SourceListExpression arguments)
Attempts to set the argument list.
|
Modifier and Type | Method and Description |
---|---|
SourceListExpression |
SourceInvokeExpression.getArgumentList() |
Modifier and Type | Method and Description |
---|---|
SourceListExpression |
SourceForStatement.getForInitializationList()
In a standard for loop with no variable declarations, this is the
list wrapping the initialization terms.
|
SourceListExpression |
SourceForStatement.getForUpdateList()
In a standard for loop, this is the list wrapping the update
terms.
|
Modifier and Type | Method and Description |
---|---|
void |
SourceVisitor.whenEnterListExpression(SourceListExpression sourceListExpression) |
void |
SourceVisitor.whenExitListExpression(SourceListExpression sourceListExpression) |