|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.dependency.DependencyManager
public abstract class DependencyManager
Entry point for the Dependency API.
Constructor Summary | |
---|---|
DependencyManager() |
Method Summary | |
---|---|
abstract void |
addDeclarationProvider(DeclarationProvider provider) Add a declaration provider. |
abstract void |
addReferenceProvider(ReferenceProvider provider) Add a reference provider. |
abstract java.util.Collection<Reference> |
findReferences(Context context, Scope scope, Declaration declaration) Find all references to a declaration. |
abstract java.util.Collection<Reference> |
findReferences(Context context, Scope scope, Declaration declaration, ProgressIndicator progress) Find all references to a declaration. |
abstract Declaration |
getDeclaration(Context context) Get the declaration for a context. |
abstract java.util.Collection<DeclarationProvider> |
getDeclarationProviders() Get the registered declaration providers. |
abstract java.util.Collection<Declaration> |
getDeclarations(Context context, Node node) Get all declarations for a Node. |
static DependencyManager |
getDependencyManager() Get the dependency manager instance. |
abstract java.util.logging.Logger |
getLogger() Get the logger used for dependency-related log messages. |
abstract Reference |
getReference(Context context) Get the reference for a context. |
abstract java.util.Collection<ReferenceProvider> |
getReferenceProviders() Get the registered reference providers. |
abstract java.util.Collection<Reference> |
getReferences(Context context, Node node) Get all references for a Node. |
abstract java.util.Collection<Declaration> |
getTopLevelDeclarations(Context context, Node node) Get all top-level declarations for a Node. |
static void |
setDependencyManager(DependencyManager dependencyManager) Set the dependency manager instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DependencyManager()
Method Detail |
---|
public static DependencyManager getDependencyManager()
public static void setDependencyManager(DependencyManager dependencyManager)
dependencyManager
- the dependency manager instancepublic abstract java.util.logging.Logger getLogger()
public abstract Declaration getDeclaration(Context context)
context
- the contextpublic abstract Reference getReference(Context context)
context
- the contextpublic abstract java.util.Collection<Reference> getReferences(Context context, Node node) throws java.lang.InterruptedException
context
- the contextnode
- the Nodejava.lang.InterruptedException
- if the operation is interruptedjava.lang.IllegalStateException
- if the method is called on the event threadpublic abstract java.util.Collection<Declaration> getDeclarations(Context context, Node node) throws java.lang.InterruptedException
context
- the contextnode
- the Nodejava.lang.InterruptedException
- if the operation is interruptedjava.lang.IllegalStateException
- if the method is called on the event threadpublic abstract java.util.Collection<Declaration> getTopLevelDeclarations(Context context, Node node) throws java.lang.InterruptedException
Some languages have a hierarchy of declarations. Objects further down in the hierarchy can only be accessed through these top-level declarations. For example, methods in a Java class can only be referenced directly through a reference to the Java class. Or columns in a database table might only be referenced through a reference to the table. In those cases, it is possible to search for all references to a Node by searching only for the top-level declarations. This improves performance compared to searching for every declaration in the Node.
context
- the contextnode
- the Nodejava.lang.InterruptedException
- if the operation is interruptedjava.lang.IllegalStateException
- if the method is called on the event threadpublic abstract java.util.Collection<Reference> findReferences(Context context, Scope scope, Declaration declaration) throws java.lang.InterruptedException, java.lang.IllegalStateException
context
- the contextscope
- the search scopedeclaration
- the declaration to search forjava.lang.InterruptedException
- if the operation is interruptedjava.lang.IllegalStateException
- if the method is called on the event threadpublic abstract java.util.Collection<Reference> findReferences(Context context, Scope scope, Declaration declaration, ProgressIndicator progress) throws java.lang.InterruptedException, java.lang.IllegalStateException
context
- the contextscope
- the search scopedeclaration
- the declaration to search forprogress
- the progress indicatorjava.lang.InterruptedException
- if the operation is interruptedjava.lang.IllegalStateException
- if the method is called on the event threadpublic abstract void addDeclarationProvider(DeclarationProvider provider)
provider
- the declaration providerpublic abstract void addReferenceProvider(ReferenceProvider provider)
provider
- the reference providerpublic abstract java.util.Collection<DeclarationProvider> getDeclarationProviders()
public abstract java.util.Collection<ReferenceProvider> getReferenceProviders()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |