| 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.javatools.parser.java.v2.write | 
 API involved with writing. 
 | 
| oracle.jdeveloper.browse | |
| oracle.jdeveloper.builder.annotation | |
| oracle.jdeveloper.builder.cls | 
 The  
cls package provides classes and interfaces for generating Java classes. | 
| oracle.jdeveloper.builder.enumtype | |
| oracle.jdeveloper.builder.iface | |
| oracle.jdeveloper.cmt | 
 The Component Model Tool, an API for manipulating Java source code. 
 | 
| oracle.jdeveloper.controller | |
| oracle.jdeveloper.engine | |
| oracle.jdeveloper.java | 
 Public API for the java model. 
 | 
| oracle.jdeveloper.java.legacy | 
 Used for migrating legacy java model code to the current version. 
 | 
| oracle.jdeveloper.java.provider | 
 Public implementations of the JavaFileProvider interface. 
 | 
| oracle.jdeveloper.java.util | 
 Public utilities for use with the java model, including the parser. 
 | 
| oracle.jdeveloper.util | 
| Modifier and Type | Method and Description | 
|---|---|
static SourceFile | 
SourceFactory.createFile(int j2se)
Deprecated. 
 
Use createFile( JdkVersion ) instead 
 | 
static SourceFile | 
SourceFactory.createFile(JdkVersion jdkVersion)
The SourceFile's URL and provider cookies are set to null. 
 | 
abstract SourceFile | 
SourceFactory.getSourceFile()
Gets the source file to which this source factory is attached. 
 | 
static SourceFile | 
JavaParser.parse(ReadTextBuffer textBuffer)
Parses the given text buffer with default options. 
 | 
static SourceFile | 
JavaParser.parse(ReadTextBuffer textBuffer,
     int j2se)
Deprecated. 
 
Use parse( ReadTextBuffer, JdkVersion ) instead 
 | 
static SourceFile | 
JavaParser.parse(ReadTextBuffer textBuffer,
     JdkVersion jdkVersion)
Parses the given text buffer with default options. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static QuickHasType | 
QuickHasType.createHasTypeByVMName(SourceFile file,
                     java.lang.String vmName)
Creates a QuickHasType where a JavaProvider is not yet available
 but a SourceFile is. 
 | 
static SourceClass | 
CommonUtilities.getSourceElement(JavaClass target,
                SourceFile searchSpace)
Searches for the target type as a member of the search class. 
 | 
static SourceElement | 
CommonUtilities.getSourceElement(JavaElement target,
                SourceFile searchSpace)  | 
static SourceImport | 
CommonUtilities.getStaticSourceImport(SourceFile file,
                     java.lang.String name)
Get the static import with the given name. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SourceFile | 
SourceFile.cloneSelf(TextBuffer textBuffer)
Clones this SourceFile into the input TextBuffer. 
 | 
SourceFile | 
SourceElement.getOwningFile()
Deprecated. 
 
Use getOwningSourceFile(). 
 | 
SourceFile | 
SourceElement.getOwningSourceFile()
Gets the owning SourceFile. 
 | 
SourceFile | 
JavaFile.getSourceElement()  | 
| Modifier and Type | Method and Description | 
|---|---|
SourceElement | 
SourceElement.cloneSelf(SourceFile targetFile)
Performs a deep-copy of this SourceElement but attached to the
 input SourceFile. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Formatting.Selection | 
Formatting.reformatRegion(SourceFile file,
              int startOffset,
              int endOffset)
Attempts to reformat between the (inclusive) input Textbuffer
 offsets. 
 | 
static javax.swing.undo.UndoableEdit | 
Formatting.reformatSelection(SourceFile file,
                 int start,
                 int end)
This method reformats the selected region of code. 
 | 
static void | 
SimplifyTypeHelper.simplifyAllTypes(SourceFile sourceFile,
                int[][] ranges)
Recursively traverses the given subtree and attempts to simplify
 any type it finds as long as that type falls within one of the
 ranges. 
 | 
void | 
SourceVisitor.whenEnterFile(SourceFile sourceFile)  | 
void | 
SourceVisitor.whenExitFile(SourceFile sourceFile)  | 
| Modifier and Type | Method and Description | 
|---|---|
SourceFile | 
SourceTransaction.getOwningSourceFile()
Get the SourceFile this transaction is attached to. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
SourceFileListener.changeUpdate(SourceFile file,
            SourceTransaction transaction)
A transaction was committed against this source file. 
 | 
void | 
SourceFileListener.expiredUpdate(SourceFile file)
The originating SourceFile instance has expired and is now invalid. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SourceFile | 
JavaBrowseContextImpl.getSourceFile()  | 
SourceFile | 
JavaBrowseContext.getSourceFile()
Generates a parsed representation of the TextBuffer. 
 | 
protected SourceFile | 
JavaBrowseContextImpl.getSourceFileImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
AnnotationBuilderModel.generate(SourceFile file,
        SourceClass cls)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
ClassGenerator.addDetails(JavaManager mgr,
          SourceFile file,
          SourceClass cls)  | 
protected void | 
AbstractGenerator.addDetails(JavaManager mgr,
          SourceFile file,
          SourceClass cls)  | 
void | 
Generator.generate(JavaManager mgr,
        SourceFile srcFile)
Tells the Generator to add whatever custom code it requires. 
 | 
void | 
AbstractGenerator.generate(JavaManager mgr,
        SourceFile srcFile)  | 
protected void | 
ClassBuilderModel.generate(SourceFile file,
        SourceClass cls)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
EnumBuilderModel.generate(SourceFile file,
        SourceClass cls)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
InterfaceBuilderModel.generate(SourceFile file,
        SourceClass cls)  | 
| Modifier and Type | Method and Description | 
|---|---|
JavaClass | 
CmtPackages.getClass(SourceFile srcFile,
        java.lang.String shortName)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract int[] | 
JavaSourceNodeActionDelegate.doAction(SourceFile file,
        Context context,
        Element[] elements,
        int[] text,
        IdeAction action)
Does the action on a  
SourceFile. | 
| Modifier and Type | Method and Description | 
|---|---|
SourceFile | 
ClassEngine.getSourceFile()  | 
static SourceFile | 
EngineUtils.getSourceFile(JavaManager javaManager,
             java.lang.String className)  | 
| 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 void | 
EngineUtils.addImport(java.lang.String clazz,
         SourceFile srcFile)
Wrapper method to strip array delimiters ([]) and
  whitespace before applying import request. 
 | 
static void | 
EngineUtils.addImport(java.lang.String clazz,
         SourceFile srcFile,
         boolean isStatic)  | 
SourceLocalVariable | 
FieldInfo.createLocalVariable(SourceFile srcFile)
Helper method for creating a new SourceFieldDeclaration from a FieldInfo. 
 | 
SourceLocalVariable | 
FieldInfo.createLocalVariable(SourceFile srcFile,
                   java.lang.String expr)  | 
SourceLocalVariableDeclaration | 
FieldInfo.createLocalVariableDeclaration(SourceFile srcFile)
Helper method for creating a new SourceFieldDeclaration from a FieldInfo. 
 | 
SourceLocalVariableDeclaration | 
FieldInfo.createLocalVariableDeclaration(SourceFile srcFile,
                              java.lang.String expr)  | 
static SourceSavepoint | 
EngineUtils.createSavepoint(SourceFile srcFile)  | 
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. 
 | 
SourceFieldDeclaration | 
FieldInfo.createSourceFieldDecl(SourceFile srcFile)
Helper method for creating a new SourceFieldDeclaration from a FieldInfo. 
 | 
SourceFieldDeclaration | 
FieldInfo.createSourceFieldDecl(SourceFile srcFile,
                     java.lang.String expr)  | 
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 SourceBlock | 
EngineUtils.createTryCatchClause(SourceFile srcFile,
                    SourceFactory factory,
                    SourceBlock codeBlock,
                    java.lang.String[] exceptions)  | 
static void | 
EngineUtils.expandType(SourceFile srcFile,
          FieldInfo fieldInfo)  | 
static java.lang.String | 
EngineUtils.expandType(SourceFile srcFile,
          java.lang.String type)  | 
static void | 
EngineUtils.expandTypes(SourceFile srcFile,
           MethodInfo methodInfo)  | 
static boolean | 
EngineUtils.hasImport(java.lang.String clazz,
         SourceFile srcFile)
Check if the given class has been imported in the source file. 
 | 
static SourceTransaction | 
EngineUtils.openTransaction(SourceFile srcFile)  | 
static boolean | 
EngineUtils.removeImport(SourceFile srcFile,
            java.lang.String className)
Helper method for removing an import from a JavaFile. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SourceFile | 
JavaModel.createSourceFile(java.net.URL sourceURL)
Creates a new SourceFile for the given Java source URL (*.java). 
 | 
SourceFile | 
JavaFileProvider.createSourceFile(java.net.URL sourceURL)
Creates a new SourceFile for the given Java source URL (*.java). 
 | 
SourceFile | 
JavaModel.getSourceFile(TextBuffer textBuffer)
Creates a new SourceFile from the input TextBuffer but NOT tied
 any particular Java source URL. 
 | 
SourceFile | 
JavaFileProvider.getSourceFile(TextBuffer textBuffer)
Creates a new SourceFile from the input TextBuffer but NOT tied
 any particular Java source URL. 
 | 
SourceFile | 
JavaModel.getSourceFile(java.net.URL sourceURL)
Fetch the SourceFile for the given Java source URL (*.java). 
 | 
SourceFile | 
JavaFileProvider.getSourceFile(java.net.URL sourceURL)
Fetch the SourceFile for the given Java source URL (*.java). 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SourceTransaction | 
JavaManager.beginTransaction(SourceFile sourceFile)
Starts a transaction on the given sourceFile. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.String | 
Jot2Utils.getMinimumReferenceName(SourceFile jFile,
                       java.lang.String qualifiedName)  | 
| Modifier and Type | Field and Description | 
|---|---|
protected java.util.Map<java.net.URL,SourceFile> | 
CachedFileProvider._sourceFileCacheMap
Our cache of *.java SourceFile instances. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SourceFile | 
CachedFileProvider.createSourceFile(java.net.URL url)  | 
SourceFile | 
BaseFileProvider.createSourceFile(java.net.URL sourceURL)
Creates a new SourceFile for the given Java source URL (*.java). 
 | 
SourceFile | 
JdevProviderContext.createSourceFile(java.net.URL sourceURL,
                int j2se)
Deprecated. 
 
Use createSourceFile( URL, JdkVersion ) instead 
 | 
SourceFile | 
ProviderContext.createSourceFile(java.net.URL url,
                int j2se)
Deprecated. 
 
Use createSourceFile( URL, JdkVersion ) instead 
 | 
SourceFile | 
JdevProviderContext.createSourceFile(java.net.URL sourceURL,
                JdkVersion jdkVersion)
Instead of directly interacting with the filesystem, use the
 Ide's Node model. 
 | 
SourceFile | 
ProviderContext.createSourceFile(java.net.URL url,
                JdkVersion jdkVersion)
Creates a new file at the given URL (*.java) and creates a
 SourceFile object for it. 
 | 
SourceFile | 
BaseFileProvider.getSourceFile(TextBuffer textBuffer)
Creates a new SourceFile from the input TextBuffer but NOT tied
 any particular Java source URL. 
 | 
protected SourceFile | 
ProviderContext.getSourceFile(TextBuffer textBuffer,
             int j2se)
Deprecated. 
 
Use getSourceFile( TextBuffer, JdkVersion ) instead 
 | 
protected SourceFile | 
ProviderContext.getSourceFile(TextBuffer textBuffer,
             JdkVersion jdkVersion)
Creates a new SourceFile for the given TextBuffer. 
 | 
SourceFile | 
BaseFileProvider.getSourceFile(java.net.URL sourceURL)
Fetch the SourceFile for the given Java source URL (*.java). 
 | 
SourceFile | 
JdevProviderContext.getSourceFile(java.net.URL url,
             int j2se)
Deprecated. 
 
Use getSourceFile( URL, JdkVersion ) instead 
 | 
SourceFile | 
ProviderContext.getSourceFile(java.net.URL url,
             int j2se)
Deprecated. 
 
Use getSourceFile( URL, JdkVersion ) instead 
 | 
SourceFile | 
JdevProviderContext.getSourceFile(java.net.URL url,
             JdkVersion jdkVersion)  | 
SourceFile | 
ProviderContext.getSourceFile(java.net.URL url,
             JdkVersion jdkVersion)
Gets a new SourceFile for the source file at the given
 URL. 
 | 
protected SourceFile | 
CachedFileProvider.getSourceFileImpl(java.net.URL sourceURL)
Fetch the SourceFile for the given Java source URL (*.java). 
 | 
protected SourceFile | 
BaseFileProvider.getSourceFileImpl(java.net.URL sourceURL)
Fetch the SourceFile for the given Java source URL (*.java). 
 | 
protected SourceFile | 
ProviderContext.getSourceFileImpl(java.net.URL url,
                 int j2se)
Deprecated. 
 
Use getSourceFileImpl( URL, JdkVersion ) instead 
 | 
protected SourceFile | 
ProviderContext.getSourceFileImpl(java.net.URL url,
                 JdkVersion jdkVersion)  | 
protected SourceFile | 
CachedFileProvider.lookupCachedSourceFile(java.net.URL sourceURL)
Utility routine which looks up the cached SourceFile entry in
 our cache map, which uses SoftReference values. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
CachedFileProvider.SourceFileTracker.changeUpdate(SourceFile file,
            SourceTransaction transaction)  | 
void | 
CachedFileProvider.SourceFileTracker.expiredUpdate(SourceFile file)  | 
protected SourceClass | 
BaseFileProvider.locateSourceClass(SourceFile sourceFile,
                 java.lang.String fqName)
Source version of locateClass() for locating a SourceClass instance
 within a SourceFile. 
 | 
protected void | 
CachedFileProvider.removeCachedSourceFile(java.net.URL sourceURL,
                      SourceFile sourceFile)
Utility routine which removes the cached SourceFile
 from our cache map. 
 | 
protected void | 
CachedFileProvider.storeCachedSourceFile(java.net.URL sourceURL,
                     SourceFile sourceFile)
Utility routine which stores the given sourcefile into our
 cache using SoftReferences. 
 | 
boolean | 
JdevProviderContext.writeSourceFile(SourceFile file)  | 
boolean | 
ProviderContext.writeSourceFile(SourceFile file)
Called when SourceTransaction.commit() is called for the given
 file. 
 | 
| Constructor and Description | 
|---|
SourceFileTracker(SourceFile sourceFile,
                 java.net.URL sourceURL)  | 
| Modifier and Type | Method and Description | 
|---|---|
static SourceClass | 
SourceUtils.addClass(SourceFile file,
        java.lang.String name,
        int modifiers)
Adds (append) a class to the file. 
 | 
static void | 
SourceUtils.addImport(SourceFile file,
         java.lang.String importName)
Adds an import to the file. 
 | 
static SourceClass | 
SourceUtils.addInterface(SourceFile file,
            java.lang.String name,
            int modifiers)
Adds (append) an interface to the file. 
 | 
static SourceLocalVariable | 
SourceUtils.createLocalVariable(SourceFile file,
                   java.lang.String type,
                   java.lang.String name)
Creates a new local variable of the given type and name. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.String | 
SourceFormatUtilities.getSmartIndentation(SourceFile sourceFile,
                   BasicDocument document,
                   int offset,
                   int indentSize)  |