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
|
SourceListExpression |
SourceFactory.createArgumentList(SourceExpression arg)
Creates an argument list with one argument.
|
SourceListExpression |
SourceFactory.createArgumentList(SourceExpression[] arguments)
Creates an argument list.
|
abstract SourceListExpression |
SourceFactory.createArrayConstant(SourceExpression[] operands)
Creates an array constant.
|
SourceListExpression |
SourceFactory.createExpressionList() |
SourceListExpression |
SourceFactory.createExpressionList(SourceExpression argument)
Creates a list expression with one element.
|
abstract SourceListExpression |
SourceFactory.createExpressionList(SourceExpression[] arguments)
Creates a list expression.
|
Modifier and Type | Method and Description |
---|---|
abstract SourceAnnotation |
SourceFactory.createAnnotation(SourceTypeReference type, SourceListExpression arguments)
Creates an annotation (but not an annotation type).
|
abstract SourceAnnotation |
SourceFactory.createAnnotation(java.lang.String name, SourceListExpression arguments)
Creates an annotation (but not an annotation type).
|
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) |
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)
(Internal) Creates an array creator.
|
abstract SourceNewClassExpression |
SourceFactory.createNewClassExpression(SourceExpression lhs, SourceTypeReference type, SourceListExpression arguments, SourceClassBody body)
Creates a class creator.
|
SourceNewArrayExpression |
SourceFactory.createNewInitializedArrayExpression(SourceTypeReference type, SourceListExpression arrayconst)
Creates an array creator.
|
SourceNewArrayExpression |
SourceFactory.createNewUninitializedArrayExpression(SourceTypeReference type, SourceListExpression args)
Creates an array creator.
|
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) |