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.util |
Public utilities for use with the java model, including the parser.
|
Modifier and Type | Method and Description |
---|---|
SourceFieldDeclaration |
SourceFactory.createFieldDeclaration(int modifiers,
SourceTypeReference type,
java.lang.String name)
Creates a field declaration.
|
SourceFieldDeclaration |
SourceFactory.createFieldDeclaration(int modifiers,
SourceTypeReference type,
java.lang.String name,
SourceExpression initializer)
Creates a field declaration.
|
abstract SourceFieldDeclaration |
SourceFactory.createFieldDeclaration(SourceFieldVariable variable)
Creates a field declaration.
|
abstract SourceFieldDeclaration |
SourceFactory.createFieldDeclaration(SourceFieldVariable[] variables)
Creates a field declaration from one or more field variables.
|
SourceFieldDeclaration |
SourceFactory.createFieldDeclaration(SourceLocalVariable variable)
Creates a field declaration to match the local variable.
|
abstract SourceFieldDeclaration |
SourceFactory.createFieldDeclaration(SourceLocalVariableDeclaration locals)
Creates a field declaration to match the local variable
declaration.
|
SourceFieldDeclaration |
SourceFactory.createFieldDeclaration(SourceTypeReference type,
java.lang.String name)
Creates a field declaration.
|
SourceFieldDeclaration |
SourceFactory.createFieldDeclaration(SourceTypeReference type,
java.lang.String name,
SourceExpression initializer)
Creates a field declaration.
|
Modifier and Type | Field and Description |
---|---|
static SourceFieldDeclaration[] |
SourceFieldDeclaration.EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
java.util.List<SourceFieldDeclaration> |
SourceClassBody.getSourceFieldDeclarations()
Gets the list of declared field declarations.
|
java.util.List<SourceFieldDeclaration> |
SourceClass.getSourceFieldDeclarations()
Gets the list of declared field declarations.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FlowAnalysisListener.endFieldDeclaration(SourceFieldDeclaration sym)
End flow analysis of a field declaration.
|
boolean |
FlowAnalysisListener.startFieldDeclaration(SourceFieldDeclaration sym)
Start flow analysis of a field declaration.
|
Modifier and Type | Method and Description |
---|---|
void |
SourceVisitor.whenEnterFieldDeclaration(SourceFieldDeclaration sourceFieldDeclaration) |
void |
SourceVisitor.whenExitFieldDeclaration(SourceFieldDeclaration sourceFieldDeclaration) |
Modifier and Type | Method and Description |
---|---|
SourceFieldDeclaration |
FieldInfo.createSourceFieldDecl(SourceFile srcFile)
Helper method for creating a new SourceFieldDeclaration from a FieldInfo.
|
SourceFieldDeclaration |
FieldInfo.createSourceFieldDecl(SourceFile srcFile,
java.lang.String expr) |
Modifier and Type | Method and Description |
---|---|
static SourceFieldDeclaration |
SourceUtils.addField(SourceClass cls,
java.lang.String type,
java.lang.String name,
int modifiers,
java.lang.String initText)
Adds a field to the class with the given type, modifiers, and
initializer text.
|
static SourceFieldDeclaration |
SourceUtils.createField(SourceClass cls,
java.lang.String fieldText)
Creates a field to the class with the given text.
|
static SourceFieldDeclaration |
SourceUtils.createField(SourceClass cls,
java.lang.String fieldText,
int modifiers)
Creates a field to the class with the given text, sets the given
modifiers on the result.
|
static SourceFieldDeclaration |
SourceUtils.createField(SourceClass cls,
java.lang.String type,
java.lang.String name,
int modifiers,
java.lang.String initText)
Creates a field to the class with the given type, modifiers, and
initializer text.
|