Klasse BasicSearchEngine
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.BasicSearchEngine
Search basic engine. Public search engine (see
SearchEngine
for detailed comment), now uses basic engine functionalities.
Note that search basic engine does not implement deprecated functionalities...-
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungBasicSearchEngine
(ICompilationUnit[] workingCopies) BasicSearchEngine
(WorkingCopyOwner workingCopyOwner) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic IJavaSearchScope
createHierarchyScope
(IType type) static IJavaSearchScope
createHierarchyScope
(IType type, WorkingCopyOwner owner) static IJavaSearchScope
createJavaSearchScope
(boolean excludeTestCode, IJavaElement[] elements) static IJavaSearchScope
createJavaSearchScope
(boolean excludeTestCode, IJavaElement[] elements, boolean includeReferencedProjects) static IJavaSearchScope
createJavaSearchScope
(boolean excludeTestCode, IJavaElement[] elements, int includeMask) static IJavaSearchScope
createJavaSearchScope
(IJavaElement[] elements) static IJavaSearchScope
createJavaSearchScope
(IJavaElement[] elements, boolean includeReferencedProjects) static IJavaSearchScope
createJavaSearchScope
(IJavaElement[] elements, int includeMask) static MethodNameMatch
createMethodNameMatch
(IMethod method, int modifiers) static IJavaSearchScope
createStrictHierarchyScope
(IJavaProject project, IType type, boolean onlySubtypes, boolean includeFocusType, WorkingCopyOwner owner) static TypeNameMatch
createTypeNameMatch
(IType type, int modifiers) static IJavaSearchScope
static SearchParticipant
Returns a new default Java search participant.static String
getMatchRuleString
(int matchRule) static String
getSearchForString
(int searchFor) Return kind of search corresponding to given value.void
search
(SearchPattern pattern, SearchParticipant[] participants, IJavaSearchScope scope, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Searches for matches of a given search pattern.void
searchAllConstructorDeclarations
(char[] packageName, char[] typeName, int typeMatchRule, IJavaSearchScope scope, boolean resolveDocumentName, IRestrictedAccessConstructorRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for constructor declarations in the given scope.void
searchAllConstructorDeclarations
(char[] packageName, char[] typeName, int typeMatchRule, IJavaSearchScope scope, IRestrictedAccessConstructorRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) void
searchAllMethodNames
(char[] packageName, int pkgMatchRule, char[] declaringQualification, int declQualificationMatchRule, char[] declaringSimpleName, int declSimpleNameMatchRule, char[] methodName, int methodMatchRule, IJavaSearchScope scope, IRestrictedAccessMethodRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all method declarations in the given scopevoid
searchAllMethodNames
(char[] qualifier, int qualifierMatchRule, char[] methodName, int methodMatchRule, IJavaSearchScope scope, IRestrictedAccessMethodRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all method declarations in the given scopevoid
searchAllSecondaryTypeNames
(IPackageFragmentRoot[] sourceFolders, IRestrictedAccessTypeRequestor nameRequestor, boolean waitForIndexes, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all secondary types in the given scope.void
searchAllTypeNames
(char[][] qualifications, char[][] typeNames, int matchRule, int searchFor, IJavaSearchScope scope, IRestrictedAccessTypeRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all top-level types and member types in the given scope using a case sensitive exact match with the given qualified names and type names.void
searchAllTypeNames
(char[] packageName, int packageMatchRule, char[] typeName, int typeMatchRule, int searchFor, IJavaSearchScope scope, boolean resolveDocumentName, IRestrictedAccessTypeRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all top-level types and member types in the given scope.void
searchAllTypeNames
(char[] packageName, int packageMatchRule, char[] typeName, int typeMatchRule, int searchFor, IJavaSearchScope scope, IRestrictedAccessTypeRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all top-level types and member types in the given scope.void
searchDeclarations
(IJavaElement enclosingElement, SearchRequestor requestor, SearchPattern pattern, org.eclipse.core.runtime.IProgressMonitor monitor) void
searchDeclarationsOfAccessedFields
(IJavaElement enclosingElement, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Searches for all declarations of the fields accessed in the given element.void
searchDeclarationsOfReferencedTypes
(IJavaElement enclosingElement, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Searches for all declarations of the types referenced in the given element.void
searchDeclarationsOfSentMessages
(IJavaElement enclosingElement, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Searches for all declarations of the methods invoked in the given element.
-
Felddetails
-
VERBOSE
public static boolean VERBOSEFor tracing purpose.
-
-
Konstruktordetails
-
BasicSearchEngine
public BasicSearchEngine() -
BasicSearchEngine
- Siehe auch:
-
BasicSearchEngine
- Siehe auch:
-
-
Methodendetails
-
createHierarchyScope
- Löst aus:
JavaModelException
- Siehe auch:
-
createHierarchyScope
public static IJavaSearchScope createHierarchyScope(IType type, WorkingCopyOwner owner) throws JavaModelException - Löst aus:
JavaModelException
- Siehe auch:
-
createStrictHierarchyScope
public static IJavaSearchScope createStrictHierarchyScope(IJavaProject project, IType type, boolean onlySubtypes, boolean includeFocusType, WorkingCopyOwner owner) throws JavaModelException - Löst aus:
JavaModelException
- Siehe auch:
-
createJavaSearchScope
- Siehe auch:
-
createJavaSearchScope
public static IJavaSearchScope createJavaSearchScope(boolean excludeTestCode, IJavaElement[] elements) -
createJavaSearchScope
public static IJavaSearchScope createJavaSearchScope(IJavaElement[] elements, boolean includeReferencedProjects) -
createJavaSearchScope
public static IJavaSearchScope createJavaSearchScope(boolean excludeTestCode, IJavaElement[] elements, boolean includeReferencedProjects) - Siehe auch:
-
createJavaSearchScope
-
createJavaSearchScope
public static IJavaSearchScope createJavaSearchScope(boolean excludeTestCode, IJavaElement[] elements, int includeMask) - Siehe auch:
-
createTypeNameMatch
- Siehe auch:
-
createMethodNameMatch
- Siehe auch:
-
createWorkspaceScope
- Siehe auch:
-
getDefaultSearchParticipant
Returns a new default Java search participant.- Gibt zurück:
- a new default Java search participant
- Seit:
- 3.0
-
getMatchRuleString
-
getSearchForString
Return kind of search corresponding to given value. -
search
public void search(SearchPattern pattern, SearchParticipant[] participants, IJavaSearchScope scope, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException Searches for matches of a given search pattern. Search patterns can be created using helper methods (from a String pattern or a Java element) and encapsulate the description of what is being searched (for example, search method declarations in a case sensitive way).- Löst aus:
org.eclipse.core.runtime.CoreException
- Siehe auch:
-
searchAllConstructorDeclarations
public void searchAllConstructorDeclarations(char[] packageName, char[] typeName, int typeMatchRule, IJavaSearchScope scope, IRestrictedAccessConstructorRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws JavaModelException - Löst aus:
JavaModelException
-
searchAllConstructorDeclarations
public void searchAllConstructorDeclarations(char[] packageName, char[] typeName, int typeMatchRule, IJavaSearchScope scope, boolean resolveDocumentName, IRestrictedAccessConstructorRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws JavaModelException Searches for constructor declarations in the given scope.- Parameter:
resolveDocumentName
- used to tell SearchEngine whether to resolve the document name for each result entry.- Löst aus:
JavaModelException
-
searchAllMethodNames
public void searchAllMethodNames(char[] qualifier, int qualifierMatchRule, char[] methodName, int methodMatchRule, IJavaSearchScope scope, IRestrictedAccessMethodRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws JavaModelException Searches for all method declarations in the given scope. *Warning: This API is in experimental phase and may be modified/removed. Do not use this until this comment is removed.
- Löst aus:
JavaModelException
- Siehe auch:
-
searchAllMethodNames
public void searchAllMethodNames(char[] packageName, int pkgMatchRule, char[] declaringQualification, int declQualificationMatchRule, char[] declaringSimpleName, int declSimpleNameMatchRule, char[] methodName, int methodMatchRule, IJavaSearchScope scope, IRestrictedAccessMethodRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws JavaModelException Searches for all method declarations in the given scope. *Warning: This API is in experimental phase and may be modified/removed. Do not use this until this comment is removed.
- Löst aus:
JavaModelException
- Siehe auch:
-
searchAllSecondaryTypeNames
public void searchAllSecondaryTypeNames(IPackageFragmentRoot[] sourceFolders, IRestrictedAccessTypeRequestor nameRequestor, boolean waitForIndexes, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws JavaModelException Searches for all secondary types in the given scope. The search can be selecting specific types (given a package or a type name prefix and match modes).- Löst aus:
JavaModelException
-
searchAllTypeNames
public void searchAllTypeNames(char[] packageName, int packageMatchRule, char[] typeName, int typeMatchRule, int searchFor, IJavaSearchScope scope, IRestrictedAccessTypeRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws JavaModelException Searches for all top-level types and member types in the given scope. The search can be selecting specific types (given a package or a type name prefix and match modes).- Löst aus:
JavaModelException
- Siehe auch:
-
searchAllTypeNames
public void searchAllTypeNames(char[] packageName, int packageMatchRule, char[] typeName, int typeMatchRule, int searchFor, IJavaSearchScope scope, boolean resolveDocumentName, IRestrictedAccessTypeRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws JavaModelException Searches for all top-level types and member types in the given scope. The search can be selecting specific types (given a package or a type name prefix and match modes).- Parameter:
resolveDocumentName
- used to tell SearchEngine whether to resolve the document name for each result entry.- Löst aus:
JavaModelException
- Siehe auch:
-
searchAllTypeNames
public void searchAllTypeNames(char[][] qualifications, char[][] typeNames, int matchRule, int searchFor, IJavaSearchScope scope, IRestrictedAccessTypeRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws JavaModelException Searches for all top-level types and member types in the given scope using a case sensitive exact match with the given qualified names and type names.- Löst aus:
JavaModelException
- Siehe auch:
-
searchDeclarations
public void searchDeclarations(IJavaElement enclosingElement, SearchRequestor requestor, SearchPattern pattern, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException - Löst aus:
JavaModelException
-
searchDeclarationsOfAccessedFields
public void searchDeclarationsOfAccessedFields(IJavaElement enclosingElement, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Searches for all declarations of the fields accessed in the given element. The element can be a compilation unit or a source type/method/field. Reports the field declarations using the given requestor.- Löst aus:
JavaModelException
- Siehe auch:
-
searchDeclarationsOfReferencedTypes
public void searchDeclarationsOfReferencedTypes(IJavaElement enclosingElement, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Searches for all declarations of the types referenced in the given element. The element can be a compilation unit or a source type/method/field. Reports the type declarations using the given requestor.- Löst aus:
JavaModelException
- Siehe auch:
-
searchDeclarationsOfSentMessages
public void searchDeclarationsOfSentMessages(IJavaElement enclosingElement, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Searches for all declarations of the methods invoked in the given element. The element can be a compilation unit or a source type/method/field. Reports the method declarations using the given requestor.- Löst aus:
JavaModelException
- Siehe auch:
-