public class UsageManager
extends java.lang.Object
UsageManager is the main entry for the usage engine.| Modifier and Type | Class and Description | 
|---|---|
static class  | 
UsageManager.ProjectPath
Utility class that holds paths as a replacement for JProject for
 testing purposes. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected UsageManager.ProjectPath | 
_projectPath
The project path to use (instead of project). 
 | 
| Constructor and Description | 
|---|
UsageManager(Project project)
Fetch the usage manager instance for the given project. 
 | 
UsageManager(UsageManager.ProjectPath projectPath)
Fetch the usage manager instance for the given project path. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
UsageQueryTask | 
findClassUsages(java.lang.String fqClassName,
               ClassUsageListener listener)
Search for usages for the given class in the associated project's
 source path. 
 | 
UsageQueryTask | 
findClassUsages(java.lang.String fqClassName,
               ClassUsageListener listener,
               java.net.URL[] urlsToSearch)
Search for usages for the given class in the specified URLs only. 
 | 
UsageQueryTask | 
findConstructorUsages(java.lang.String fqDeclareClassName,
                     java.lang.String[] fqParameterTypeNames,
                     ConstructorUsageListener listener)
Search for usages for the given constructor in the associated
 project's source path. 
 | 
UsageQueryTask | 
findConstructorUsages(java.lang.String fqDeclareClassName,
                     java.lang.String[] fqParameterTypeNames,
                     ConstructorUsageListener listener,
                     java.net.URL[] urlsToSearch)
Search for usages for the given field in the specified URLs only. 
 | 
UsageQueryTask | 
findFieldUsages(java.lang.String fqDeclareClassName,
               java.lang.String fieldName,
               FieldUsageListener listener)
Search for usages for the given field in the associated project's
 source path. 
 | 
UsageQueryTask | 
findFieldUsages(java.lang.String fqDeclareClassName,
               java.lang.String fieldName,
               FieldUsageListener listener,
               java.net.URL[] urlsToSearch)
Search for usages for the given field in the specified URLs only. 
 | 
UsageQueryTask | 
findFieldUsages(java.lang.String fqDeclareClassName,
               java.lang.String fqFieldTypeName,
               java.lang.String fieldName,
               FieldUsageListener listener)
Search for usages for the given field in the associated project's
 source path. 
 | 
UsageQueryTask | 
findFieldUsages(java.lang.String fqDeclareClassName,
               java.lang.String fqFieldTypeName,
               java.lang.String fieldName,
               FieldUsageListener listener,
               java.net.URL[] urlsToSearch)
Search for usages for the given field in the specified URLs only. 
 | 
UsageQueryTask | 
findMethodUsages(java.lang.String fqDeclareClassName,
                java.lang.String methodName,
                java.lang.String[] fqParameterTypeNames,
                MethodUsageListener listener)
Search for usages for the given method in the associated
 project's source path. 
 | 
UsageQueryTask | 
findMethodUsages(java.lang.String fqDeclareClassName,
                java.lang.String methodName,
                java.lang.String[] fqParameterTypeNames,
                MethodUsageListener listener,
                java.net.URL[] urlsToSearch)
Search for usages for the given field in the specified URLs only. 
 | 
JavaClass | 
getClass(java.lang.String fqClassName)
Fetch the JavaClass for the given class. 
 | 
protected JavaFileProvider | 
getJavaProvider()  | 
protected Project | 
getProject()
Get the project. 
 | 
protected UsageManager.ProjectPath | 
getProjectPath()
Get the project path. 
 | 
protected UsageManager.ProjectPath _projectPath
public UsageManager(Project project)
project - the project contextpublic UsageManager(UsageManager.ProjectPath projectPath)
projectPath - the project path contextprotected JavaFileProvider getJavaProvider()
protected Project getProject()
protected UsageManager.ProjectPath getProjectPath()
public UsageQueryTask findClassUsages(java.lang.String fqClassName, ClassUsageListener listener)
fqClassName - the fully-qualified class namelistener - the notification listener of class usage resultspublic UsageQueryTask findClassUsages(java.lang.String fqClassName, ClassUsageListener listener, java.net.URL[] urlsToSearch)
fqClassName - the fully-qualified class namelistener - the notification listener of class usage resultsurlsToSearch - the list of urls to search throughpublic UsageQueryTask findFieldUsages(java.lang.String fqDeclareClassName, java.lang.String fqFieldTypeName, java.lang.String fieldName, FieldUsageListener listener)
fqDeclareClassName - the fully-qualified name of the declaring
        classfqFieldTypeName - the fully-qualified name of the field typefieldName - the field namelistener - the notification listener of field usage resultspublic UsageQueryTask findFieldUsages(java.lang.String fqDeclareClassName, java.lang.String fieldName, FieldUsageListener listener)
fqDeclareClassName - the fully-qualified name of the declaring
        classfieldName - the field namelistener - the notification listener of field usage resultspublic UsageQueryTask findFieldUsages(java.lang.String fqDeclareClassName, java.lang.String fqFieldTypeName, java.lang.String fieldName, FieldUsageListener listener, java.net.URL[] urlsToSearch)
fqDeclareClassName - the fully-qualified name of the declaring
        classfqFieldTypeName - the fully-qualified name of the field typefieldName - the field namelistener - the notification listener of class usage resultsurlsToSearch - the list of urls to search throughpublic UsageQueryTask findFieldUsages(java.lang.String fqDeclareClassName, java.lang.String fieldName, FieldUsageListener listener, java.net.URL[] urlsToSearch)
fqDeclareClassName - the fully-qualified name of the declaring
        classfieldName - the field namelistener - the notification listener of class usage resultsurlsToSearch - the list of urls to search throughpublic UsageQueryTask findConstructorUsages(java.lang.String fqDeclareClassName, java.lang.String[] fqParameterTypeNames, ConstructorUsageListener listener)
fqDeclareClassName - the fully-qualified name of the declaring
        classfqParameterTypeNames - the fully-qualified names of the
        parameter typeslistener - the notification listener of constructor usage resultspublic UsageQueryTask findConstructorUsages(java.lang.String fqDeclareClassName, java.lang.String[] fqParameterTypeNames, ConstructorUsageListener listener, java.net.URL[] urlsToSearch)
fqDeclareClassName - the fully-qualified name of the declaring
        classfqParameterTypeNames - the fully-qualified names of the
        parameter typeslistener - the notification listener of class usage resultsurlsToSearch - the list of urls to search throughpublic UsageQueryTask findMethodUsages(java.lang.String fqDeclareClassName, java.lang.String methodName, java.lang.String[] fqParameterTypeNames, MethodUsageListener listener)
fqDeclareClassName - the fully-qualified name of the declaring
        classmethodName - the name of the methodfqParameterTypeNames - the fully-qualified names of the
        parameter typeslistener - the notification listener of method usage resultspublic UsageQueryTask findMethodUsages(java.lang.String fqDeclareClassName, java.lang.String methodName, java.lang.String[] fqParameterTypeNames, MethodUsageListener listener, java.net.URL[] urlsToSearch)
fqDeclareClassName - the fully-qualified name of the declaring
        classmethodName - the name of the methodfqParameterTypeNames - the fully-qualified names of the
        parameter typeslistener - the notification listener of class usage resultsurlsToSearch - the list of urls to search throughpublic JavaClass getClass(java.lang.String fqClassName)
fqClassName - the fully-qualified class name