Klasse CancelableNameEnvironment
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.SearchableEnvironment
org.aspectj.org.eclipse.jdt.internal.core.CancelableNameEnvironment
- Alle implementierten Schnittstellen:
IJavaSearchConstants
,IModuleAwareNameEnvironment
,INameEnvironment
,INameEnvironmentExtension
,INameEnvironmentWithProgress
public class CancelableNameEnvironment
extends SearchableEnvironment
implements INameEnvironmentWithProgress
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.aspectj.org.eclipse.jdt.internal.compiler.env.IModuleAwareNameEnvironment
IModuleAwareNameEnvironment.LookupStrategy
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.SearchableEnvironment
checkAccessRestrictions, nameLookup, owner, project, searchScope, unitToSkip, workingCopies
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.search.IJavaSearchConstants
ALL_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, PERMITTYPE_TYPE_REFERENCE, 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
-
Konstruktorübersicht
KonstruktorBeschreibungCancelableNameEnvironment
(JavaProject project, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) CancelableNameEnvironment
(JavaProject project, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor, boolean excludeTestCode) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
findPackages
(char[] prefix, ISearchRequestor requestor) Find the packages that start with the given prefix.findType
(char[][] compoundTypeName) Find a type with the given compound name.findType
(char[] name, char[][] packageName) Find a type namedin the package . findType
(char[] typeName, char[][] packageName, boolean searchWithSecondaryTypes, char[] moduleName) Find a type namedin the package . void
findTypes
(char[] prefix, boolean findMembers, int matchRule, int searchFor, ISearchRequestor storage, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Must be used only by CompletionEngine.void
setMonitor
(org.eclipse.core.runtime.IProgressMonitor monitor) Set the monitor for the given name environment.Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.SearchableEnvironment
applyModuleUpdates, cleanup, find, findConstructorDeclarations, findExactTypes, findModules, findPackages, findType, findType, findTypeInModules, findTypes, findTypes, getAllAutomaticModules, getModule, getModulesDeclaringPackage, getOwnedPackageFragmentRoots, hasCompilationUnit, listPackages, printTimeSpent, toStringChar, toStringCharChar
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.IModuleAwareNameEnvironment
getUniqueModulesDeclaringPackage, isPackage
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.INameEnvironment
cleanup
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.INameEnvironmentExtension
findType
-
Konstruktordetails
-
CancelableNameEnvironment
public CancelableNameEnvironment(JavaProject project, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException - Löst aus:
JavaModelException
-
CancelableNameEnvironment
public CancelableNameEnvironment(JavaProject project, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor, boolean excludeTestCode) throws JavaModelException - Löst aus:
JavaModelException
-
-
Methodendetails
-
findPackages
Beschreibung aus Klasse kopiert:SearchableEnvironment
Find the packages that start with the given prefix. A valid prefix is a qualified name separated by periods (ex. java.util). The packages found are passed to: ISearchRequestor.acceptPackage(char[][] packageName)- Setzt außer Kraft:
findPackages
in KlasseSearchableEnvironment
-
findType
Beschreibung aus Schnittstelle kopiert:INameEnvironment
Find a type namedin the package . Answer the binary form of the type if it is known to be consistent. Otherwise, answer the compilation unit which defines the type or null if the type does not exist. The default package is indicated by char[0][]. It is known that the package containing the type exists. NOTE: This method can be used to find a member type using its internal name A$B, but the source file for A is answered if the binary file is inconsistent. - Angegeben von:
findType
in SchnittstelleIModuleAwareNameEnvironment
- Angegeben von:
findType
in SchnittstelleINameEnvironment
-
findType
Beschreibung aus Schnittstelle kopiert:INameEnvironment
Find a type with the given compound name. Answer the binary form of the type if it is known to be consistent. Otherwise, answer the compilation unit which defines the type or null if the type does not exist. Types in the default package are specified as {{typeName}}. It is unknown whether the package containing the type actually exists. NOTE: This method can be used to find a member type using its internal name A$B, but the source file for A is answered if the binary file is inconsistent.- Angegeben von:
findType
in SchnittstelleIModuleAwareNameEnvironment
- Angegeben von:
findType
in SchnittstelleINameEnvironment
-
findType
public NameEnvironmentAnswer findType(char[] typeName, char[][] packageName, boolean searchWithSecondaryTypes, char[] moduleName) Beschreibung aus Schnittstelle kopiert:INameEnvironmentExtension
Find a type namedin the package . Answer the binary form of the type if it is known to be consistent. Otherwise, answer the compilation unit which defines the type or null if the type does not exist. The default package is indicated by char[0][]. It is known that the package containing the type exists. NOTE: This method can be used to find a member type using its internal name A$B, but the source file for A is answered if the binary file is inconsistent. The flag can be used to switch on/off the search for secondary types. This is useful because the search for secondary types may by very expensive regarding the performance and in many cases it isn't necessary to search for secondary types. - Angegeben von:
findType
in SchnittstelleINameEnvironmentExtension
- Parameter:
typeName
- 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.UNNAMED- Gibt zurück:
NameEnvironmentAnswer
-
findTypes
public void findTypes(char[] prefix, boolean findMembers, int matchRule, int searchFor, ISearchRequestor storage, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Beschreibung aus Klasse kopiert:SearchableEnvironment
Must be used only by CompletionEngine. The progress monitor is used to be able to cancel completion operations Find the top-level types that are defined in the current environment and whose name starts with the given prefix. The prefix is a qualified name separated by periods or a simple name (ex. java.util.V or V). The types found are passed to one of the following methods (if additional information is known about the types): ISearchRequestor.acceptType(char[][] packageName, char[] typeName) ISearchRequestor.acceptClass(char[][] packageName, char[] typeName, int modifiers) ISearchRequestor.acceptInterface(char[][] packageName, char[] typeName, int modifiers) This method can not be used to find member types... member types are found relative to their enclosing type.- Setzt außer Kraft:
findTypes
in KlasseSearchableEnvironment
-
setMonitor
public void setMonitor(org.eclipse.core.runtime.IProgressMonitor monitor) Beschreibung aus Schnittstelle kopiert:INameEnvironmentWithProgress
Set the monitor for the given name environment. In order to be able to cancel this name environment calls, a non-null monitor should be given.- Angegeben von:
setMonitor
in SchnittstelleINameEnvironmentWithProgress
- Parameter:
monitor
- the given monitor
-