org.aspectj.org.eclipse.jdt.internal.core.search
Class PatternSearchJob
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.PatternSearchJob
- All Implemented Interfaces:
- IJob
- Direct Known Subclasses:
- SubTypeSearchJob
public class PatternSearchJob
- extends java.lang.Object
- implements IJob
|
Method Summary |
boolean |
belongsTo(java.lang.String jobFamily)
Answer true if the job belongs to a given family (tag) |
void |
cancel()
Asks this job to cancel its execution. |
void |
ensureReadyToRun()
Ensures that this job is ready to run. |
boolean |
execute(IProgressMonitor progressMonitor)
Execute the current job, answer whether it was successful. |
Index[] |
getIndexes(IProgressMonitor progressMonitor)
|
java.lang.String |
getJobFamily()
Returns this job's family |
boolean |
search(Index index,
IProgressMonitor progressMonitor)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
pattern
protected SearchPattern pattern
scope
protected IJavaSearchScope scope
participant
protected SearchParticipant participant
requestor
protected IndexQueryRequestor requestor
areIndexesReady
protected boolean areIndexesReady
executionTime
protected long executionTime
PatternSearchJob
public PatternSearchJob(SearchPattern pattern,
SearchParticipant participant,
IJavaSearchScope scope,
IndexQueryRequestor requestor)
belongsTo
public boolean belongsTo(java.lang.String jobFamily)
- Description copied from interface:
IJob
- Answer true if the job belongs to a given family (tag)
- Specified by:
belongsTo in interface IJob
cancel
public void cancel()
- Description copied from interface:
IJob
- Asks this job to cancel its execution. The cancellation
can take an undertermined amount of time.
- Specified by:
cancel in interface IJob
ensureReadyToRun
public void ensureReadyToRun()
- Description copied from interface:
IJob
- Ensures that this job is ready to run.
- Specified by:
ensureReadyToRun in interface IJob
execute
public boolean execute(IProgressMonitor progressMonitor)
- Description copied from interface:
IJob
- Execute the current job, answer whether it was successful.
- Specified by:
execute in interface IJob
getIndexes
public Index[] getIndexes(IProgressMonitor progressMonitor)
getJobFamily
public java.lang.String getJobFamily()
- Description copied from interface:
IJob
- Returns this job's family
- Specified by:
getJobFamily in interface IJob
search
public boolean search(Index index,
IProgressMonitor progressMonitor)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object