Schnittstelle IJavaSearchConstants

Alle bekannten Implementierungsklassen:
CancelableNameEnvironment, SearchableEnvironment

public interface IJavaSearchConstants

This interface defines the constants used by the search engine.

This interface declares constants only.

Siehe auch:
  • Ungültige Referenz
    org.eclipse.jdt.core.search.SearchEngine
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final int
    The search result is a declaration, a reference, or an implementer of an interface.
    static final char[]
    The unnamed module is represented by this constant for making the intent explicit in searches involving modules
    static final int
    The searched element is an annotation type.
    static final int
    Return only type references used as an annotation.
    static final int
    The search operation throws an org.eclipse.core.runtime.OperationCanceledException if the underlying indexer has not finished indexing the workspace.
    static final boolean
    Veraltet.
    Use the methods that take the matchMode without SearchPattern.R_CASE_SENSITIVE as a matchRule instead.
    static final boolean
    Veraltet.
    Use the methods that take the matchMode with SearchPattern.R_CASE_SENSITIVE as a matchRule instead.
    static final int
    Return only type references used in a cast expression.
    static final int
    Return only type references used in a catch header.
    static final int
    The searched element is a class.
    static final int
    The searched element is a class or enum type.
    static final int
    The searched element is a class or interface type.
    static final int
    Return only type references used in class instance creation.
    static final int
    The searched element is a constructor.
    static final int
    The search result is a declaration.
    static final int
    The searched element is an enum.
    static final int
    Veraltet.
    static final int
    The searched element is a field.
    static final int
    Return only type references used as the type of a field declaration.
    static final int
    The search operation starts immediately, even if the underlying indexer has not finished indexing the workspace.
    static final int
    Ignore declaring type while searching result.
    static final int
    Ignore return type while searching result.
    static final int
    The search result is a type that implements an interface or extends a class.
    static final int
    Return only field accesses or method invocations without any qualification.
    static final int
    Return only type references used in an import declaration.
    static final int
    Return only type references used as a type of an instanceof expression.
    static final int
    The searched element is an interface.
    static final int
    The searched element is an interface or annotation type.
    static final int
    Return only type references used as the type of a local variable declaration.
    static final int
    The searched element is a method.
    static final int
    Return only method reference expressions, e.g.
    static final int
    The searched element is a module.
    static final int
    When searching for Type Declaration matches, and if a module is given, this will find type declaration matches in this module as well as the dependent module graph of the given module.
    static final int
    The searched element is a package.
    static final int
    Return only type references used as the type of a method parameter declaration.
    static final int
    Veraltet.
    static final int
    Return only type references used as a permit type (Java 15)
    static final int
    Veraltet.
    static final int
    Return only qualified field accesses or qualified method invocations.
    static final int
    When searching for field matches, it will exclusively find read accesses, as opposed to write accesses.
    static final int
    The search result is a reference.
    static final int
    Return only type references used as a method return type.
    static final int
    Return only super field accesses or super method invocations (e.g. using the super qualifier).
    static final int
    Return only type references used as a super type or as a super interface.
    static final int
    Return only primary field accesses or primary method invocations (e.g. using the this qualifier).
    static final int
    Return only type references used in a throws clause.
    static final int
    The searched element is a type, which may include classes, interfaces, enums, and annotation types.
    static final int
    Return only type references used as a type argument in a parameterized type or a parameterized method.
    static final int
    Return only type references used as a type variable bound.
    static final int
    The nature of searched element or the nature of match in unknown.
    static final int
    The search operation waits for the underlying indexer to finish indexing the workspace before starting the search.
    static final int
    Return only type references used as a wildcard bound.
    static final int
    When searching for field matches, it will exclusively find write accesses, as opposed to read accesses.
  • Felddetails

    • UNKNOWN

      static final int UNKNOWN
      The nature of searched element or the nature of match in unknown.
      Siehe auch:
    • TYPE

      static final int TYPE
      The searched element is a type, which may include classes, interfaces, enums, and annotation types.
      Siehe auch:
    • METHOD

      static final int METHOD
      The searched element is a method.
      Siehe auch:
    • PACKAGE

      static final int PACKAGE
      The searched element is a package.
      Siehe auch:
    • CONSTRUCTOR

      static final int CONSTRUCTOR
      The searched element is a constructor.
      Siehe auch:
    • FIELD

      static final int FIELD
      The searched element is a field.
      Siehe auch:
    • CLASS

      static final int CLASS
      The searched element is a class. More selective than using TYPE.
      Siehe auch:
    • INTERFACE

      static final int INTERFACE
      The searched element is an interface. More selective than using TYPE.
      Siehe auch:
    • ENUM

      static final int ENUM
      The searched element is an enum. More selective than using TYPE.
      Seit:
      3.1
      Siehe auch:
    • ANNOTATION_TYPE

      static final int ANNOTATION_TYPE
      The searched element is an annotation type. More selective than using TYPE.
      Seit:
      3.1
      Siehe auch:
    • CLASS_AND_ENUM

      static final int CLASS_AND_ENUM
      The searched element is a class or enum type. More selective than using TYPE.
      Seit:
      3.1
      Siehe auch:
    • CLASS_AND_INTERFACE

      static final int CLASS_AND_INTERFACE
      The searched element is a class or interface type. More selective than using TYPE.
      Seit:
      3.1
      Siehe auch:
    • INTERFACE_AND_ANNOTATION

      static final int INTERFACE_AND_ANNOTATION
      The searched element is an interface or annotation type. More selective than using TYPE.
      Seit:
      3.3
      Siehe auch:
    • MODULE

      static final int MODULE
      The searched element is a module.
      Seit:
      3.14
      Siehe auch:
    • DECLARATIONS

      static final int DECLARATIONS
      The search result is a declaration. Can be used in conjunction with any of the nature of searched elements so as to better narrow down the search.
      Siehe auch:
    • IMPLEMENTORS

      static final int IMPLEMENTORS
      The search result is a type that implements an interface or extends a class. Used in conjunction with either TYPE or CLASS or INTERFACE, it will respectively search for any type implementing/extending a type, or rather exclusively search for classes implementing/extending the type, or interfaces extending the type.
      Siehe auch:
    • REFERENCES

      static final int REFERENCES
      The search result is a reference. Can be used in conjunction with any of the nature of searched elements so as to better narrow down the search. References can contain implementers since they are more generic kind of matches.
      Siehe auch:
    • ALL_OCCURRENCES

      static final int ALL_OCCURRENCES
      The search result is a declaration, a reference, or an implementer of an interface. Can be used in conjunction with any of the nature of searched elements so as to better narrow down the search.
      Siehe auch:
    • READ_ACCESSES

      static final int READ_ACCESSES
      When searching for field matches, it will exclusively find read accesses, as opposed to write accesses. Note that some expressions are considered both as field read/write accesses: for example, x++; x+= 1;
      Seit:
      2.0
      Siehe auch:
    • WRITE_ACCESSES

      static final int WRITE_ACCESSES
      When searching for field matches, it will exclusively find write accesses, as opposed to read accesses. Note that some expressions are considered both as field read/write accesses: for example, x++; x+= 1;
      Seit:
      2.0
      Siehe auch:
    • MODULE_GRAPH

      static final int MODULE_GRAPH
      When searching for Type Declaration matches, and if a module is given, this will find type declaration matches in this module as well as the dependent module graph of the given module.
      Seit:
      3.14
      Siehe auch:
    • IGNORE_DECLARING_TYPE

      static final int IGNORE_DECLARING_TYPE
      Ignore declaring type while searching result. Can be used in conjunction with any of the nature of match.
      Seit:
      3.1
      Siehe auch:
    • IGNORE_RETURN_TYPE

      static final int IGNORE_RETURN_TYPE
      Ignore return type while searching result. Can be used in conjunction with any other nature of match. Note that:
      • for fields search, pattern will ignore field type
      • this flag will have no effect for types search
      Seit:
      3.1
      Siehe auch:
    • FIELD_DECLARATION_TYPE_REFERENCE

      static final int FIELD_DECLARATION_TYPE_REFERENCE
      Return only type references used as the type of a field declaration.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • LOCAL_VARIABLE_DECLARATION_TYPE_REFERENCE

      static final int LOCAL_VARIABLE_DECLARATION_TYPE_REFERENCE
      Return only type references used as the type of a local variable declaration.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • PARAMETER_DECLARATION_TYPE_REFERENCE

      static final int PARAMETER_DECLARATION_TYPE_REFERENCE
      Return only type references used as the type of a method parameter declaration.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • SUPERTYPE_TYPE_REFERENCE

      static final int SUPERTYPE_TYPE_REFERENCE
      Return only type references used as a super type or as a super interface.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • THROWS_CLAUSE_TYPE_REFERENCE

      static final int THROWS_CLAUSE_TYPE_REFERENCE
      Return only type references used in a throws clause.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • CAST_TYPE_REFERENCE

      static final int CAST_TYPE_REFERENCE
      Return only type references used in a cast expression.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • CATCH_TYPE_REFERENCE

      static final int CATCH_TYPE_REFERENCE
      Return only type references used in a catch header.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • CLASS_INSTANCE_CREATION_TYPE_REFERENCE

      static final int CLASS_INSTANCE_CREATION_TYPE_REFERENCE
      Return only type references used in class instance creation.

      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.

      Seit:
      3.4
      Siehe auch:
    • RETURN_TYPE_REFERENCE

      static final int RETURN_TYPE_REFERENCE
      Return only type references used as a method return type.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • IMPORT_DECLARATION_TYPE_REFERENCE

      static final int IMPORT_DECLARATION_TYPE_REFERENCE
      Return only type references used in an import declaration.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • ANNOTATION_TYPE_REFERENCE

      static final int ANNOTATION_TYPE_REFERENCE
      Return only type references used as an annotation.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • TYPE_ARGUMENT_TYPE_REFERENCE

      static final int TYPE_ARGUMENT_TYPE_REFERENCE
      Return only type references used as a type argument in a parameterized type or a parameterized method.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • TYPE_VARIABLE_BOUND_TYPE_REFERENCE

      static final int TYPE_VARIABLE_BOUND_TYPE_REFERENCE
      Return only type references used as a type variable bound.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • WILDCARD_BOUND_TYPE_REFERENCE

      static final int WILDCARD_BOUND_TYPE_REFERENCE
      Return only type references used as a wildcard bound.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • INSTANCEOF_TYPE_REFERENCE

      static final int INSTANCEOF_TYPE_REFERENCE
      Return only type references used as a type of an instanceof expression.

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.4
      Siehe auch:
    • SUPER_REFERENCE

      static final int SUPER_REFERENCE
      Return only super field accesses or super method invocations (e.g. using the super qualifier).

      When this flag is set, the kind of returned matches will depend on the specified nature of the searched element:

      Seit:
      3.4
      Siehe auch:
    • QUALIFIED_REFERENCE

      static final int QUALIFIED_REFERENCE
      Return only qualified field accesses or qualified method invocations.

      When this flag is set, the kind of returned matches will depend on the specified nature of the searched element:

      Seit:
      3.4
      Siehe auch:
    • THIS_REFERENCE

      static final int THIS_REFERENCE
      Return only primary field accesses or primary method invocations (e.g. using the this qualifier).

      When this flag is set, the kind of returned matches will depend on the specified nature of the searched element:

      Seit:
      3.4
      Siehe auch:
    • IMPLICIT_THIS_REFERENCE

      static final int IMPLICIT_THIS_REFERENCE
      Return only field accesses or method invocations without any qualification.

      When this flag is set, the kind of returned matches will depend on the specified nature of the searched element:

      Seit:
      3.4
      Siehe auch:
    • METHOD_REFERENCE_EXPRESSION

      static final int METHOD_REFERENCE_EXPRESSION
      Return only method reference expressions, e.g. A::foo.

      When this flag is set, only MethodReferenceMatch matches will be returned.

      Seit:
      3.10
      Siehe auch:
    • PERMITTYPE_TYPE_REFERENCE

      static final int PERMITTYPE_TYPE_REFERENCE
      Return only type references used as a permit type (Java 15)

      When this flag is set, only TypeReferenceMatch matches will be returned.

      Seit:
      3.24
      Siehe auch:
    • EXACT_MATCH

      static final int EXACT_MATCH
      Veraltet.
      The search pattern matches exactly the search result, that is, the source of the search result equals the search pattern.
      Siehe auch:
    • PREFIX_MATCH

      static final int PREFIX_MATCH
      Veraltet.
      The search pattern is a prefix of the search result.
      Siehe auch:
    • PATTERN_MATCH

      static final int PATTERN_MATCH
      Veraltet.
      The search pattern contains one or more wild cards ('*') where a wild-card can replace 0 or more characters in the search result.
      Siehe auch:
    • CASE_SENSITIVE

      static final boolean CASE_SENSITIVE
      Veraltet.
      Use the methods that take the matchMode with SearchPattern.R_CASE_SENSITIVE as a matchRule instead.
      The search pattern matches the search result only if cases are the same.
      Siehe auch:
    • CASE_INSENSITIVE

      static final boolean CASE_INSENSITIVE
      Veraltet.
      Use the methods that take the matchMode without SearchPattern.R_CASE_SENSITIVE as a matchRule instead.
      The search pattern ignores cases in the search result.
      Siehe auch:
    • ALL_UNNAMED

      static final char[] ALL_UNNAMED
      The unnamed module is represented by this constant for making the intent explicit in searches involving modules
      Seit:
      3.14