public class CancelableNameEnvironment extends SearchableEnvironment implements INameEnvironmentWithProgress
IModuleAwareNameEnvironment.LookupStrategycheckAccessRestrictions, nameLookup, owner, project, searchScope, unitToSkip, workingCopiesALL_OCCURRENCES, ALL_UNNAMED, ANNOTATION_TYPE, ANNOTATION_TYPE_REFERENCE, CANCEL_IF_NOT_READY_TO_SEARCH, CASE_INSENSITIVE, CASE_SENSITIVE, CAST_TYPE_REFERENCE, CATCH_TYPE_REFERENCE, CLASS, CLASS_AND_ENUM, CLASS_AND_INTERFACE, CLASS_INSTANCE_CREATION_TYPE_REFERENCE, CONSTRUCTOR, DECLARATIONS, ENUM, EXACT_MATCH, FIELD, FIELD_DECLARATION_TYPE_REFERENCE, FORCE_IMMEDIATE_SEARCH, IGNORE_DECLARING_TYPE, IGNORE_RETURN_TYPE, IMPLEMENTORS, IMPLICIT_THIS_REFERENCE, IMPORT_DECLARATION_TYPE_REFERENCE, INSTANCEOF_TYPE_REFERENCE, INTERFACE, INTERFACE_AND_ANNOTATION, LOCAL_VARIABLE_DECLARATION_TYPE_REFERENCE, METHOD, METHOD_REFERENCE_EXPRESSION, MODULE, MODULE_GRAPH, PACKAGE, PARAMETER_DECLARATION_TYPE_REFERENCE, PATTERN_MATCH, PREFIX_MATCH, QUALIFIED_REFERENCE, READ_ACCESSES, REFERENCES, RETURN_TYPE_REFERENCE, SUPER_REFERENCE, SUPERTYPE_TYPE_REFERENCE, THIS_REFERENCE, THROWS_CLAUSE_TYPE_REFERENCE, TYPE, TYPE_ARGUMENT_TYPE_REFERENCE, TYPE_VARIABLE_BOUND_TYPE_REFERENCE, UNKNOWN, WAIT_UNTIL_READY_TO_SEARCH, WILDCARD_BOUND_TYPE_REFERENCE, WRITE_ACCESSES| Constructor and Description |
|---|
CancelableNameEnvironment(JavaProject project,
WorkingCopyOwner owner,
IProgressMonitor monitor) |
CancelableNameEnvironment(JavaProject project,
WorkingCopyOwner owner,
IProgressMonitor monitor,
boolean excludeTestCode) |
| Modifier and Type | Method and Description |
|---|---|
void |
findPackages(char[] prefix,
ISearchRequestor requestor)
Find the packages that start with the given prefix.
|
NameEnvironmentAnswer |
findType(char[][] compoundTypeName)
Find a type with the given compound name.
|
NameEnvironmentAnswer |
findType(char[] name,
char[][] packageName)
Find a type named
|
NameEnvironmentAnswer |
findType(char[] typeName,
char[][] packageName,
boolean searchWithSecondaryTypes,
char[] moduleName)
Find a type named
|
void |
findTypes(char[] prefix,
boolean findMembers,
boolean camelCaseMatch,
int searchFor,
ISearchRequestor storage,
IProgressMonitor progressMonitor)
Must be used only by CompletionEngine.
|
void |
setMonitor(IProgressMonitor monitor)
Set the monitor for the given name environment.
|
applyModuleUpdates, cleanup, find, findConstructorDeclarations, findExactTypes, findModules, findPackages, findType, findType, findTypeInModules, findTypes, getAllAutomaticModules, getModule, getModulesDeclaringPackage, getOwnedPackageFragmentRoots, hasCompilationUnit, listPackages, toStringChar, toStringCharCharclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindTypecleanup, isPackagegetUniqueModulesDeclaringPackage, isPackagepublic CancelableNameEnvironment(JavaProject project, WorkingCopyOwner owner, IProgressMonitor monitor) throws JavaModelException
JavaModelExceptionpublic CancelableNameEnvironment(JavaProject project, WorkingCopyOwner owner, IProgressMonitor monitor, boolean excludeTestCode) throws JavaModelException
JavaModelExceptionpublic void findPackages(char[] prefix,
ISearchRequestor requestor)
SearchableEnvironmentfindPackages in class SearchableEnvironmentpublic NameEnvironmentAnswer findType(char[] name, char[][] packageName)
INameEnvironmentfindType in interface IModuleAwareNameEnvironmentfindType in interface INameEnvironmentpublic NameEnvironmentAnswer findType(char[][] compoundTypeName)
INameEnvironmentfindType in interface IModuleAwareNameEnvironmentfindType in interface INameEnvironmentpublic NameEnvironmentAnswer findType(char[] typeName, char[][] packageName, boolean searchWithSecondaryTypes, char[] moduleName)
INameEnvironmentExtensionfindType in interface INameEnvironmentExtensiontypeName - type to findpackageName - package of the searched typesearchWithSecondaryTypes - flag to switch on/off the search for secondary typesmoduleName - the name of the module to search in, or one of ModuleBinding.ANY, ModuleBinding.UNNAMEDNameEnvironmentAnswerpublic void findTypes(char[] prefix,
boolean findMembers,
boolean camelCaseMatch,
int searchFor,
ISearchRequestor storage,
IProgressMonitor progressMonitor)
SearchableEnvironmentfindTypes in class SearchableEnvironmentpublic void setMonitor(IProgressMonitor monitor)
INameEnvironmentWithProgresssetMonitor in interface INameEnvironmentWithProgressmonitor - the given monitor