java.lang.Object
org.aspectj.org.eclipse.jdt.core.search.SearchPattern
org.aspectj.org.eclipse.jdt.internal.core.search.matching.JavaSearchPattern
All Implemented Interfaces:
Cloneable, IParallelizable, IIndexConstants
Direct Known Subclasses:
ConstructorPattern, IntersectingPattern, MethodPattern, ModulePattern, MultiTypeDeclarationPattern, PackageDeclarationPattern, SuperTypeReferencePattern, TypeDeclarationPattern, TypeParameterPattern, VariablePattern

public class JavaSearchPattern extends SearchPattern implements IIndexConstants, IParallelizable, Cloneable
  • Field Details

    • fineGrain

      public int fineGrain
      Fine grain limitation
    • MATCH_MODE_MASK

      public static final int MATCH_MODE_MASK
      Mask used on match rule for match mode.
      See Also:
    • MATCH_COMPATIBILITY_MASK

      public static final int MATCH_COMPATIBILITY_MASK
      Mask used on match rule for generic relevance.
      See Also:
  • Constructor Details

    • JavaSearchPattern

      protected JavaSearchPattern(int patternKind, int matchRule)
  • Method Details

    • getFineGrainFlagString

      public static String getFineGrainFlagString(int fineGrain)
    • getBlankPattern

      public SearchPattern getBlankPattern()
      Description copied from class: SearchPattern
      Returns a blank pattern that can be used as a record to decode an index key.

      Implementors of this method should return a new search pattern that is going to be used to decode index keys.

      Specified by:
      getBlankPattern in class SearchPattern
      Returns:
      a new blank pattern
      See Also:
    • hasSignatures

      public final boolean hasSignatures()
      Returns whether the pattern has signatures or not. If pattern typeArguments field, this field shows that it was built on a generic source type.
      Returns:
      true if typeSignatures field is not null and has a length greater than 0.
    • hasTypeArguments

      public final boolean hasTypeArguments()
      Returns whether the pattern includes type arguments information or not.
      Returns:
      default is false
    • hasTypeParameters

      public final boolean hasTypeParameters()
      Returns whether the pattern includes type parameters information or not.
      Returns:
      true if typeArguments contains type parameters instead type arguments signatures.
    • print

      protected StringBuilder print(StringBuilder output)
    • toString

      public final String toString()
      Overrides:
      toString in class SearchPattern
      See Also:
    • isParallelSearchSupported

      public boolean isParallelSearchSupported()
      Description copied from interface: IParallelizable
      Answers true if the current instance supports parallel index search
      Specified by:
      isParallelSearchSupported in interface IParallelizable
      Returns:
      Returns true if the implementation is safe to be used in a parallel search.