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.java.util |
Public utilities for use with the java model, including the parser.
|
Modifier and Type | Method and Description |
---|---|
SourceClassBody |
SourceFactory.createClassBody()
Creates an empty class body.
|
SourceClassBody |
SourceFactory.createClassBody(SourceMember member)
Creates an empty class body.
|
abstract SourceClassBody |
SourceFactory.createClassBody(SourceMember[] members)
Creates a class body.
|
Modifier and Type | Method and Description |
---|---|
SourceClass |
SourceFactory.createClass(int tyKind,
java.lang.String name,
SourceSuperclassClause superclassClause,
SourceInterfacesClause interfacesClause,
SourceClassBody body)
Creates a class declaration.
|
abstract SourceClass |
SourceFactory.createClass(int tyKind,
java.lang.String name,
SourceTypeParameter[] tyParameters,
SourceSuperclassClause superclassClause,
SourceInterfacesClause interfacesClause,
SourceClassBody body)
Creates a class declaration.
|
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 SourceNewClassExpression |
SourceFactory.createNewClassExpression(SourceExpression lhs,
SourceTypeReference type,
SourceListExpression arguments,
SourceClassBody body)
Creates a class creator.
|
Modifier and Type | Method and Description |
---|---|
SourceClassBody |
SourceClass.getSourceBody()
Gets the class body object.
|
Modifier and Type | Method and Description |
---|---|
void |
SourceVisitor.whenEnterClassBody(SourceClassBody sourceClassBody) |
void |
SourceVisitor.whenExitClassBody(SourceClassBody sourceClassBody) |
Modifier and Type | Method and Description |
---|---|
static void |
SourceUtils.addBlankLine(SourceClassBody body)
Adds (append) a blank line to the block.
|
static void |
SourceUtils.addLineComment(SourceClassBody block,
java.lang.String commentText)
Adds (append) a line comment to the block.
|