| Package | Description | 
|---|---|
| oracle.javatools.parser.java.v2 | 
 The parser API. 
 | 
| oracle.javatools.parser.java.v2.common | 
 Classes common to model implementations. 
 | 
| 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.browse | |
| oracle.jdeveloper.engine | |
| oracle.jdeveloper.java.util | 
 Public utilities for use with the java model, including the parser. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SourceMethod | 
SourceFactory.createConstructor(SourceFormalParameterList parameters,
                 SourceThrowsClause throwsClause,
                 SourceBlock block)
Creates a constructor declaration. 
 | 
abstract SourceMethod | 
SourceFactory.createConstructor(SourceTypeParameter[] typeParameters,
                 SourceFormalParameterList parameters,
                 SourceThrowsClause throwsClause,
                 SourceBlock block)
Creates a constructor declaration. 
 | 
abstract SourceMethod | 
SourceFactory.createMethod(SourceTypeParameter[] tyParameters,
            SourceTypeReference returnType,
            java.lang.String methodName,
            SourceFormalParameterList parameters,
            SourceThrowsClause throwsClause,
            SourceBlock block)
Creates a method declaration. 
 | 
SourceMethod | 
SourceFactory.createMethod(SourceTypeReference returnType,
            java.lang.String methodName,
            SourceFormalParameterList parameters,
            SourceThrowsClause throwsClause,
            SourceBlock block)
Creates a non-generic method declaration. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static SourceMethod | 
CommonUtilities.getEnclosingMethod(SourceElement sourceElement)
Get the enclosing method of the incoming SourceElement. 
 | 
SourceMethod | 
WrapperMethod.getSourceElement()  | 
SourceMethod | 
AbstractMethod.getSourceElement()  | 
static SourceMethod | 
CommonUtilities.getSourceElement(JavaMethod target,
                SourceClass searchSpace)
Searches for the target method as a member of the search class. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static java.util.List<java.lang.Integer> | 
CommonUtilities.getParameterCommaLocations(SourceMethod sourceMethod)
Given a SourceMethod, find the locations of the commas separating
 the parameters of that SourceMethod. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static SourceMethod[] | 
SourceMethod.EMPTY_ARRAY  | 
| Modifier and Type | Method and Description | 
|---|---|
SourceMethod | 
SourceClass.getSourceConstructor(JavaType[] targetTypes)
Gets the matching declared constructor declaration, null if none. 
 | 
SourceMethod | 
JavaMethod.getSourceElement()  | 
SourceMethod | 
SourceClass.getSourceMethod(java.lang.String name,
               JavaType[] targetTypes)
Gets the matching method declaration, null if none. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.List<SourceMethod> | 
SourceClassBody.getSourceConstructors()
Gets the list of declared constructor declarations. 
 | 
java.util.List<SourceMethod> | 
SourceClass.getSourceConstructors()
Gets the list of declared constructor declarations. 
 | 
java.util.List<SourceMethod> | 
SourceClassBody.getSourceMethods()
Gets the list of declared method (but not constructor) declarations. 
 | 
java.util.List<SourceMethod> | 
SourceClass.getSourceMethods()
Gets the list of declared method (but not constructor) declarations. 
 | 
java.util.Collection<SourceMethod> | 
SourceClass.getSourceMethods(java.lang.String name)
Gets the collection of matching method (but not constructor)
 declarations. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
FlowAnalysisListener.endMethod(SourceMethod sym)
End flow analysis of a method. 
 | 
boolean | 
FlowAnalysisListener.startMethod(SourceMethod sym)
Start flow analysis of a method. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Usages.declareConstructor(SourceMethod s)
Declares a constructor. 
 | 
void | 
Usages.declareMethod(SourceMethod s)
Declares a method. 
 | 
void | 
SourceVisitor.whenEnterConstructorDeclaration(SourceMethod sourceMethod)  | 
void | 
SourceVisitor.whenEnterMethodDeclaration(SourceMethod sourceMethod)  | 
void | 
SourceVisitor.whenExitConstructorDeclaration(SourceMethod sourceMethod)  | 
void | 
SourceVisitor.whenExitMethodDeclaration(SourceMethod sourceMethod)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected static SourceMethod | 
JavaBrowseHelper.determineDeclaration(SourceElement elementAt)  | 
| Modifier and Type | Method and Description | 
|---|---|
SourceMethod | 
MethodInfo.createSourceConstructor(SourceFile srcFile,
                       boolean addDefaultImpl)
Helper method for creating a new SourceMethod from a MethodInfo. 
 | 
SourceMethod | 
MethodInfo.createSourceConstructor(SourceFile srcFile,
                       SourceBlock srcBlock)
Helper method for creating a new SourceMethod from a MethodInfo. 
 | 
SourceMethod | 
MethodInfo.createSourceConstructor(SourceFile srcFile,
                       java.lang.String stmt)
Helper method for creating a new SourceMethod from a MethodInfo. 
 | 
SourceMethod | 
MethodInfo.createSourceConstructor(SourceFile srcFile,
                       java.lang.String[] stmts)
Helper method for creating a new SourceMethod from a MethodInfo. 
 | 
SourceMethod | 
MethodInfo.createSourceMethod(SourceFile srcFile,
                  boolean addDefaultImpl)
Helper method for creating a new SourceMethod from a MethodInfo. 
 | 
SourceMethod | 
MethodInfo.createSourceMethod(SourceFile srcFile,
                  SourceBlock srcBlock)
Helper method for creating a new SourceMethod from a MethodInfo. 
 | 
SourceMethod | 
MethodInfo.createSourceMethod(SourceFile srcFile,
                  java.lang.String stmt)
Helper method for creating a new SourceMethod from a MethodInfo. 
 | 
SourceMethod | 
MethodInfo.createSourceMethod(SourceFile srcFile,
                  java.lang.String[] stmts)
Helper method for creating a new SourceMethod from a MethodInfo. 
 | 
static SourceMethod | 
MethodEngine.findSourceMethod(ClassEngine classEngine,
                java.lang.String methodName,
                java.util.List params)
Search for the named method w/ the specified params in a source file. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
MethodEngine.addDefaultImpl(MethodInfo mi,
              SourceFile srcFile,
              SourceMethod srcMethod)
Add a default method body to a source method, enough to satisfy the
 compiler. 
 | 
static boolean | 
MethodEngine.updateParamInMethod(ClassEngine classEngine,
                   SourceMethod meth,
                   java.lang.String oldParamType,
                   java.lang.String oldParamName,
                   java.lang.String newParamType,
                   java.lang.String newParamName)  | 
| Constructor and Description | 
|---|
MethodInfo(SourceMethod srcMethod)  | 
| Modifier and Type | Method and Description | 
|---|---|
static SourceMethod | 
SourceUtils.addConstructor(SourceClass cls,
              int modifiers)
Adds a constructor to the class. 
 | 
static SourceMethod | 
SourceUtils.addConstructor(SourceClass cls,
              int modifiers,
              SourceElement sibling,
              boolean before)
Inserts a constructor into the class by the specified sibling. 
 | 
static SourceMethod | 
SourceUtils.addMainMethod(SourceClass cls)
Adds (append) a "public static void main( String[] args )" method to
 the class. 
 | 
static SourceMethod | 
SourceUtils.addMethod(SourceClass cls,
         java.lang.String type,
         java.lang.String name,
         int modifiers)
Adds (append) a method to the class. 
 | 
static SourceMethod | 
SourceUtils.addMethod(SourceClass cls,
         java.lang.String type,
         java.lang.String name,
         int modifiers,
         SourceElement sibling,
         boolean before)
Inserts a method into the class by the specified sibling. 
 | 
static SourceMethod | 
SourceUtils.createConstructor(SourceClass cls,
                 int modifiers)
Creates a new constructor. 
 | 
static SourceMethod | 
SourceUtils.createMainMethod(SourceClass cls)
Creates a "public static void main( String[] args )" method. 
 | 
static SourceMethod | 
SourceUtils.createMethod(SourceClass cls,
            java.lang.String type,
            java.lang.String name,
            int modifiers)
Constructs a new method. 
 | 
static SourceMethod | 
SourceUtils.getDefaultConstructor(SourceClass cls)
Fetch the default constructor for this class. 
 | 
static SourceMethod | 
SourceUtils.getMainMethod(SourceClass cls)
Find the main method in the cls. 
 | 
static SourceMethod | 
SourceUtils.getMethod(SourceClass cls,
         java.lang.String name,
         java.lang.String[] paramTypes)
Find the method in the cls with the given name and parameter types. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static SourceLocalVariable | 
SourceUtils.addMethodParameter(SourceMethod method,
                  java.lang.String type,
                  java.lang.String name)
Adds (append) a parameter to the method. 
 | 
static void | 
SourceUtils.addThrows(SourceMethod method,
         java.lang.String throwName)
Adds a (class) type to the throws clause of the method declaration. 
 | 
static SourceVariable | 
SourceUtils.getMethodParameter(SourceMethod method,
                  int index)
Fetch a parameter from the method. 
 | 
static void | 
SourceUtils.removeThrows(SourceMethod method,
            java.lang.String throwName)
Removes a class (type) from the throws clause of the method declaration. 
 |