Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Uses of Interface
oracle.javatools.parser.java.v2.model.SourceFile

Packages that use SourceFile
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.audit.java Helper and transform classes for auditing Java nodes and working with the Java object model. 
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.cmt The Component Model Tool, an API for manipulating Java source code. 
oracle.jdeveloper.controller   
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. 
 

Uses of SourceFile in oracle.javatools.parser.java.v2
 

Methods in oracle.javatools.parser.java.v2 that return SourceFile
static SourceFile SourceFactory.createFile(int j2se)
          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)
          Parses the given text buffer with default options.
 

Uses of SourceFile in oracle.javatools.parser.java.v2.common
 

Methods in oracle.javatools.parser.java.v2.common with parameters of type SourceFile
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)
           
 

Uses of SourceFile in oracle.javatools.parser.java.v2.model
 

Methods in oracle.javatools.parser.java.v2.model that return SourceFile
 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.
 

Methods in oracle.javatools.parser.java.v2.model with parameters of type SourceFile
 SourceElement SourceElement.cloneSelf(SourceFile targetFile)
          Performs a deep-copy of this SourceElement but attached to the input SourceFile.
 

Uses of SourceFile in oracle.javatools.parser.java.v2.util
 

Methods in oracle.javatools.parser.java.v2.util with parameters of type SourceFile
static void Usages.processUsages(SourceFile file, Usages usages)
          Causes a special compile of this file that tracks declarations and usages.
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.
 void SourceVisitor.whenEnterFile(SourceFile sourceFile)
           
 void SourceVisitor.whenExitFile(SourceFile sourceFile)
           
 

Uses of SourceFile in oracle.javatools.parser.java.v2.write
 

Methods in oracle.javatools.parser.java.v2.write that return SourceFile
 SourceFile SourceTransaction.getOwningSourceFile()
           
 

Methods in oracle.javatools.parser.java.v2.write with parameters of type SourceFile
 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.
 

Uses of SourceFile in oracle.jdeveloper.audit.java
 

Methods in oracle.jdeveloper.audit.java that return SourceFile
 SourceFile JavaTransformContext.getSourceFile()
          Gets the SourceFile enclosing the location of this context.
 

Methods in oracle.jdeveloper.audit.java with parameters of type SourceFile
 void JavaSourceEditorAdapter.notifyCompileFinished(JavaManager manager, SourceFile file, int cid, int delay)
           
 void JavaSourceEditorAdapter.notifyParseFinished(JavaManager javaManager, SourceFile sourceFile, int changeId, int elapsedDelay)
           
 

Uses of SourceFile in oracle.jdeveloper.builder.annotation
 

Methods in oracle.jdeveloper.builder.annotation with parameters of type SourceFile
protected  void AnnotationBuilderModel.generate(SourceFile file, SourceClass cls)
           
 

Uses of SourceFile in oracle.jdeveloper.builder.cls
 

Methods in oracle.jdeveloper.builder.cls with parameters of type SourceFile
protected  void AbstractGenerator.addDetails(JavaManager mgr, SourceFile file, SourceClass cls)
           
protected  void ClassGenerator.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)
           
 

Uses of SourceFile in oracle.jdeveloper.builder.enumtype
 

Methods in oracle.jdeveloper.builder.enumtype with parameters of type SourceFile
protected  void EnumBuilderModel.generate(SourceFile file, SourceClass cls)
           
 

Uses of SourceFile in oracle.jdeveloper.cmt
 

Methods in oracle.jdeveloper.cmt with parameters of type SourceFile
 JavaClass CmtPackages.getClass(SourceFile srcFile, java.lang.String shortName)
           
 

Uses of SourceFile in oracle.jdeveloper.controller
 

Methods in oracle.jdeveloper.controller with parameters of type SourceFile
protected abstract  int[] JavaSourceNodeActionDelegate.doAction(SourceFile file, Context context, Element[] elements, int[] text, IdeAction action)
          Does the action on a SourceFile.
 

Uses of SourceFile in oracle.jdeveloper.java
 

Methods in oracle.jdeveloper.java that return SourceFile
 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).
 

Methods in oracle.jdeveloper.java with parameters of type SourceFile
 SourceTransaction JavaManager.beginTransaction(SourceFile sourceFile)
          Starts a transaction on the given sourceFile.
 

Uses of SourceFile in oracle.jdeveloper.java.legacy
 

Methods in oracle.jdeveloper.java.legacy with parameters of type SourceFile
static java.lang.String Jot2Utils.getMinimumReferenceName(SourceFile jFile, java.lang.String qualifiedName)
           
 

Uses of SourceFile in oracle.jdeveloper.java.provider
 

Fields in oracle.jdeveloper.java.provider with type parameters of type SourceFile
protected  java.util.Map<java.net.URL,SourceFile> CachedFileProvider._sourceFileCacheMap
          Our cache of *.java JavaFile instances.
 

Methods in oracle.jdeveloper.java.provider that return SourceFile
 SourceFile BaseFileProvider.createSourceFile(java.net.URL sourceURL)
          Creates a new SourceFile for the given Java source URL (*.java).
 SourceFile CachedFileProvider.createSourceFile(java.net.URL url)
           
 SourceFile JdevProviderContext.createSourceFile(java.net.URL sourceURL, int j2se)
          Instead of directly interacting with the filesystem, use the Ide's Node model.
 SourceFile ProviderContext.createSourceFile(java.net.URL url, int j2se)
          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)
          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)
           
 SourceFile ProviderContext.getSourceFile(java.net.URL url, int j2se)
          Gets a new SourceFile object for the (existing) file at the given URL.
protected  SourceFile BaseFileProvider.getSourceFileImpl(java.net.URL sourceURL)
          Fetch the SourceFile for the given Java source URL (*.java).
protected  SourceFile CachedFileProvider.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)
           
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.
 

Methods in oracle.jdeveloper.java.provider with parameters of type SourceFile
 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, but ONLY if the SourceFile is actually mapped to the URL.
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.
 

Constructors in oracle.jdeveloper.java.provider with parameters of type SourceFile
CachedFileProvider.SourceFileTracker(SourceFile sourceFile, java.net.URL sourceURL)
           
 

Uses of SourceFile in oracle.jdeveloper.java.util
 

Methods in oracle.jdeveloper.java.util with parameters of type SourceFile
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.
 


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.