public class JavaModelFactory
extends java.lang.Object
setInstance(oracle.jdeveloper.java.JavaModelFactory)
to
set the factory instance used to create new JavaModels. Modifier and Type | Field and Description |
---|---|
protected ClassLocatorFactory |
locatorFactory
The locator factory.
|
Modifier | Constructor and Description |
---|---|
protected |
JavaModelFactory() |
Modifier and Type | Method and Description |
---|---|
static JavaModelFactory |
getInstance()
Gets the JavaModelFactory.
|
ClassLocatorFactory |
getLocatorFactory()
Gets the factory we'll use to create new class locators with.
|
ProviderContext |
newContext()
Creates a new context for the provider.
|
protected ProviderContext |
newContextImpl()
Creates a new context for the provider.
|
CachedFileProvider |
newFileProvider(URLPath sourcepath,
URLPath classpath) |
protected JavaModel |
newInstance(CachedFileProvider provider)
Creates a new JavaModel instance with the given provider.
|
JavaModel |
newInstance(URLPath sourcepath,
URLPath classpath)
Creates a new JavaModel instance for the given arguments.
|
protected ClassLocatorFactory |
newLocatorFactory()
Creates a new locator factory.
|
static void |
setInstance(JavaModelFactory factory)
Sets the JavaModelFactory instance to use for creating new
JavaModel instances.
|
protected ClassLocatorFactory locatorFactory
public static JavaModelFactory getInstance()
public static void setInstance(JavaModelFactory factory)
factory
- Must be non-null.public final JavaModel newInstance(URLPath sourcepath, URLPath classpath)
java.lang.IllegalArgumentException
- if both sourcepath and classpath are
null.public final CachedFileProvider newFileProvider(URLPath sourcepath, URLPath classpath)
protected JavaModel newInstance(CachedFileProvider provider)
public final ClassLocatorFactory getLocatorFactory()
protected ClassLocatorFactory newLocatorFactory()
public final ProviderContext newContext()
protected ProviderContext newContextImpl()