|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJavaSearchConstants
This interface defines the constants used by the search engine.
This interface declares constants only.
SearchEngine
Field Summary | |
---|---|
static int |
ALL_OCCURRENCES
The search result is a declaration, a reference, or an implementer of an interface. |
static int |
ANNOTATION_TYPE
The searched element is an annotation type. |
static int |
ANNOTATION_TYPE_REFERENCE
Return only type references used as an annotation. |
static int |
CANCEL_IF_NOT_READY_TO_SEARCH
The search operation throws an org.eclipse.core.runtime.OperationCanceledException
if the underlying indexer has not finished indexing the workspace. |
static boolean |
CASE_INSENSITIVE
Deprecated. Use the methods that take the matchMode without SearchPattern.R_CASE_SENSITIVE as a matchRule instead. |
static boolean |
CASE_SENSITIVE
Deprecated. Use the methods that take the matchMode with SearchPattern.R_CASE_SENSITIVE as a matchRule instead. |
static int |
CAST_TYPE_REFERENCE
Return only type references used in a cast expression. |
static int |
CATCH_TYPE_REFERENCE
Return only type references used in a catch header. |
static int |
CLASS
The searched element is a class. |
static int |
CLASS_AND_ENUM
The searched element is a class or enum type. |
static int |
CLASS_AND_INTERFACE
The searched element is a class or interface type. |
static int |
CLASS_INSTANCE_CREATION_TYPE_REFERENCE
Return only type references used in class instance creation. |
static int |
CONSTRUCTOR
The searched element is a constructor. |
static int |
DECLARATIONS
The search result is a declaration. |
static int |
ENUM
The searched element is an enum. |
static int |
EXACT_MATCH
Deprecated. Use SearchPattern.R_EXACT_MATCH instead. |
static int |
FIELD
The searched element is a field. |
static int |
FIELD_DECLARATION_TYPE_REFERENCE
Return only type references used as the type of a field declaration. |
static int |
FORCE_IMMEDIATE_SEARCH
The search operation starts immediately, even if the underlying indexer has not finished indexing the workspace. |
static int |
IGNORE_DECLARING_TYPE
Ignore declaring type while searching result. |
static int |
IGNORE_RETURN_TYPE
Ignore return type while searching result. |
static int |
IMPLEMENTORS
The search result is a type that implements an interface or extends a class. |
static int |
IMPLICIT_THIS_REFERENCE
Return only field accesses or method invocations without any qualification. |
static int |
IMPORT_DECLARATION_TYPE_REFERENCE
Return only type references used in an import declaration. |
static int |
INSTANCEOF_TYPE_REFERENCE
Return only type references used as an instance of. |
static int |
INTERFACE
The searched element is an interface. |
static int |
INTERFACE_AND_ANNOTATION
The searched element is an interface or annotation type. |
static int |
LOCAL_VARIABLE_DECLARATION_TYPE_REFERENCE
Return only type references used as the type of a local variable declaration. |
static int |
METHOD
The searched element is a method. |
static int |
PACKAGE
The searched element is a package. |
static int |
PARAMETER_DECLARATION_TYPE_REFERENCE
Return only type references used as the type of a method parameter declaration. |
static int |
PATTERN_MATCH
Deprecated. Use SearchPattern.R_PATTERN_MATCH instead. |
static int |
PREFIX_MATCH
Deprecated. Use SearchPattern.R_PREFIX_MATCH instead. |
static int |
QUALIFIED_REFERENCE
Return only qualified field accesses or qualified method invocations. |
static int |
READ_ACCESSES
When searching for field matches, it will exclusively find read accesses, as opposed to write accesses. |
static int |
REFERENCES
The search result is a reference. |
static int |
RETURN_TYPE_REFERENCE
Return only type references used as a method return type. |
static int |
SUPER_REFERENCE
Return only super field accesses or super method invocations (e.g. |
static int |
SUPERTYPE_TYPE_REFERENCE
Return only type references used as a super type or as a super interface. |
static int |
THIS_REFERENCE
Return only primary field accesses or primary method invocations (e.g. |
static int |
THROWS_CLAUSE_TYPE_REFERENCE
Return only type references used in a throws clause. |
static int |
TYPE
The searched element is a type, which may include classes, interfaces, enums, and annotation types. |
static int |
TYPE_ARGUMENT_TYPE_REFERENCE
Return only type references used as a type argument in a parameterized type or a parameterized method. |
static int |
TYPE_VARIABLE_BOUND_TYPE_REFERENCE
Return only type references used as a type variable bound. |
static int |
UNKNOWN
The nature of searched element or the nature of match in unknown. |
static int |
WAIT_UNTIL_READY_TO_SEARCH
The search operation waits for the underlying indexer to finish indexing the workspace before starting the search. |
static int |
WILDCARD_BOUND_TYPE_REFERENCE
Return only type references used as a wildcard bound. |
static int |
WRITE_ACCESSES
When searching for field matches, it will exclusively find write accesses, as opposed to read accesses. |
Field Detail |
---|
static final int UNKNOWN
static final int TYPE
static final int METHOD
static final int PACKAGE
static final int CONSTRUCTOR
static final int FIELD
static final int CLASS
TYPE
.
static final int INTERFACE
TYPE
.
static final int ENUM
TYPE
.
static final int ANNOTATION_TYPE
TYPE
.
static final int CLASS_AND_ENUM
TYPE
.
static final int CLASS_AND_INTERFACE
TYPE
.
static final int INTERFACE_AND_ANNOTATION
TYPE
.
static final int DECLARATIONS
static final int IMPLEMENTORS
static final int REFERENCES
static final int ALL_OCCURRENCES
static final int READ_ACCESSES
static final int WRITE_ACCESSES
static final int IGNORE_DECLARING_TYPE
static final int IGNORE_RETURN_TYPE
static final int FIELD_DECLARATION_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int LOCAL_VARIABLE_DECLARATION_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int PARAMETER_DECLARATION_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int SUPERTYPE_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int THROWS_CLAUSE_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int CAST_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int CATCH_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int CLASS_INSTANCE_CREATION_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
Example:
public class Test { Test() {} static Test bar() { return new Test(); } }Searching references to the type
Test
using this flag in the
above snippet will match only the reference in italic.
Note that array creations are not returned when using this flag.
static final int RETURN_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int IMPORT_DECLARATION_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int ANNOTATION_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int TYPE_ARGUMENT_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int TYPE_VARIABLE_BOUND_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int WILDCARD_BOUND_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int INSTANCEOF_TYPE_REFERENCE
When this flag is set, only TypeReferenceMatch
matches will be
returned.
static final int SUPER_REFERENCE
super
qualifier).
When this flag is set, the kind of returned matches will depend on the specified nature of the searched element:
FIELD
nature, only FieldReferenceMatch
matches will be returned,METHOD
nature, only MethodReferenceMatch
matches will be returned.
static final int QUALIFIED_REFERENCE
When this flag is set, the kind of returned matches will depend on the specified nature of the searched element:
FIELD
nature, only FieldReferenceMatch
matches will be returned,METHOD
nature, only MethodReferenceMatch
matches will be returned.
static final int THIS_REFERENCE
this
qualifier).
When this flag is set, the kind of returned matches will depend on the specified nature of the searched element:
FIELD
nature, only FieldReferenceMatch
matches will be returned,METHOD
nature, only MethodReferenceMatch
matches will be returned.
static final int IMPLICIT_THIS_REFERENCE
When this flag is set, the kind of returned matches will depend on the specified nature of the searched element:
FIELD
nature, only FieldReferenceMatch
matches will be returned,METHOD
nature, only MethodReferenceMatch
matches will be returned.
static final int EXACT_MATCH
SearchPattern.R_EXACT_MATCH
instead.
static final int PREFIX_MATCH
SearchPattern.R_PREFIX_MATCH
instead.
static final int PATTERN_MATCH
SearchPattern.R_PATTERN_MATCH
instead.
static final boolean CASE_SENSITIVE
SearchPattern.R_CASE_SENSITIVE
as a matchRule instead.
static final boolean CASE_INSENSITIVE
SearchPattern.R_CASE_SENSITIVE
as a matchRule instead.
static final int FORCE_IMMEDIATE_SEARCH
static final int CANCEL_IF_NOT_READY_TO_SEARCH
org.eclipse.core.runtime.OperationCanceledException
if the underlying indexer has not finished indexing the workspace.
static final int WAIT_UNTIL_READY_TO_SEARCH
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |