Class SuperTypeReferenceLocator

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.matching.PatternLocator
org.aspectj.org.eclipse.jdt.internal.core.search.matching.SuperTypeReferenceLocator
All Implemented Interfaces:
IQualifiedTypeResolutionListener, IIndexConstants

public class SuperTypeReferenceLocator extends PatternLocator
  • Field Details

  • Constructor Details

  • Method Details

    • match

      public int match(LambdaExpression node, MatchingNodeSet nodeSet)
      Overrides:
      match in class PatternLocator
    • match

      public int match(TypeReference node, MatchingNodeSet nodeSet)
      Overrides:
      match in class PatternLocator
    • matchContainer

      protected int matchContainer()
      Description copied from class: PatternLocator
      Returns the type(s) of container for this pattern. It is a bit combination of types, denoting compilation unit, class declarations, field declarations or method declarations.
      Overrides:
      matchContainer in class PatternLocator
    • matchReportReference

      protected void matchReportReference(ASTNode reference, IJavaElement element, Binding elementBinding, int accuracy, MatchLocator locator) throws org.eclipse.core.runtime.CoreException
      Description copied from class: PatternLocator
      Reports the match of the given reference.
      Overrides:
      matchReportReference in class PatternLocator
      Throws:
      org.eclipse.core.runtime.CoreException
    • referenceType

      protected int referenceType()
      Overrides:
      referenceType in class PatternLocator
    • resolveLevel

      public int resolveLevel(ASTNode node)
      Description copied from class: PatternLocator
      Finds out whether the given ast node matches this search pattern. Returns IMPOSSIBLE_MATCH if it doesn't. Returns INACCURATE_MATCH if it potentially matches this search pattern (i.e. it has already been resolved but resolving failed.) Returns ACCURATE_MATCH if it matches exactly this search pattern (i.e. it doesn't need to be resolved or it has already been resolved.)
      Overrides:
      resolveLevel in class PatternLocator
    • resolveLevel

      public int resolveLevel(Binding binding)
      Description copied from class: PatternLocator
      Finds out whether the given binding matches this search pattern. Returns ACCURATE_MATCH if it does. Returns INACCURATE_MATCH if resolve failed but match is still possible. Returns IMPOSSIBLE_MATCH otherwise. Default is to return INACCURATE_MATCH.
      Overrides:
      resolveLevel in class PatternLocator
    • toString

      public String toString()
      Overrides:
      toString in class PatternLocator