Klasse PatternSearchJob
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.PatternSearchJob
- Alle implementierten Schnittstellen:
IJob
- Bekannte direkte Unterklassen:
SubTypeSearchJob
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected booleanstatic final Stringstatic final booleanprotected AtomicLongprotected SearchParticipantprotected SearchPatternprotected IndexQueryRequestorprotected booleanprotected booleanprotected IJavaSearchScopeVon Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.search.processing.IJob
CancelIfNotReady, COMPLETE, FAILED, ForceImmediate, WaitUntilReady -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPatternSearchJob(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, boolean resolveDocumentForJar, boolean resolveDocumentForSourceFiles, IndexQueryRequestor requestor) Create a search job with the specified search pattern.PatternSearchJob(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, IndexQueryRequestor requestor) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanAnswer true if the job belongs to a given family (tag)voidcancel()Asks this job to cancel its execution.voidEnsures that this job is ready to run.booleanexecute(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Execute the current job, answer whether it was successful.Index[]getIndexes(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Returns this job's familybooleansearch(Index index, IndexQueryRequestor queryRequestor, org.eclipse.core.runtime.IProgressMonitor progressMonitor) toString()booleanAnswers if we need some sleep after index write operations.
-
Felddetails
-
pattern
-
scope
-
participant
-
requestor
-
resolveDocumentForJar
protected boolean resolveDocumentForJar -
resolveDocumentForSourceFiles
protected boolean resolveDocumentForSourceFiles -
areIndexesReady
protected boolean areIndexesReady -
executionTime
-
ENABLE_PARALLEL_SEARCH
- Siehe auch:
-
ENABLE_PARALLEL_SEARCH_DEFAULT
public static final boolean ENABLE_PARALLEL_SEARCH_DEFAULT- Siehe auch:
-
-
Konstruktordetails
-
PatternSearchJob
public PatternSearchJob(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, IndexQueryRequestor requestor) -
PatternSearchJob
public PatternSearchJob(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, boolean resolveDocumentForJar, boolean resolveDocumentForSourceFiles, IndexQueryRequestor requestor) Create a search job with the specified search pattern.- Parameter:
resolveDocumentForJar- whether to resolve the document name of a result entry if it comes to a JAR library.resolveDocumentForSourceFiles- whether to resolve the document name of a result entry if it comes from a project's source files.
-
-
Methodendetails
-
belongsTo
Beschreibung aus Schnittstelle kopiert:IJobAnswer true if the job belongs to a given family (tag) -
cancel
public void cancel()Beschreibung aus Schnittstelle kopiert:IJobAsks this job to cancel its execution. The cancellation can take an undertermined amount of time. -
ensureReadyToRun
public void ensureReadyToRun()Beschreibung aus Schnittstelle kopiert:IJobEnsures that this job is ready to run.- Angegeben von:
ensureReadyToRunin SchnittstelleIJob
-
execute
public boolean execute(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Beschreibung aus Schnittstelle kopiert:IJobExecute the current job, answer whether it was successful. -
getIndexes
-
waitNeeded
public boolean waitNeeded()Beschreibung aus Schnittstelle kopiert:IJobAnswers if we need some sleep after index write operations. Default implementation returnsfalse.- Angegeben von:
waitNeededin SchnittstelleIJob- Gibt zurück:
- true if the job manager should sleep a bit after this job is done to avoid IO tasks overloading OS (which could cause UI freezes etc).
-
getJobFamily
Beschreibung aus Schnittstelle kopiert:IJobReturns this job's family- Angegeben von:
getJobFamilyin SchnittstelleIJob
-
search
public boolean search(Index index, IndexQueryRequestor queryRequestor, org.eclipse.core.runtime.IProgressMonitor progressMonitor) -
toString
-