java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.matching.PatternLocator
org.aspectj.org.eclipse.jdt.internal.core.search.matching.MethodLocator
Alle implementierten Schnittstellen:
IQualifiedTypeResolutionListener, IIndexConstants

public class MethodLocator extends PatternLocator
  • Felddetails

    • pattern

      protected MethodPattern pattern
    • isDeclarationOfReferencedMethodsPattern

      protected boolean isDeclarationOfReferencedMethodsPattern
    • allSuperDeclaringTypeNames

      public char[][][] allSuperDeclaringTypeNames
  • Konstruktordetails

  • Methodendetails

    • clear

      protected void clear()
      Setzt außer Kraft:
      clear in Klasse PatternLocator
    • fineGrain

      protected int fineGrain()
      Setzt außer Kraft:
      fineGrain in Klasse PatternLocator
    • initializePolymorphicSearch

      public void initializePolymorphicSearch(MatchLocator locator)
      Beschreibung aus Klasse kopiert: PatternLocator
      Initializes this search pattern so that polymorphic search can be performed.
      Setzt außer Kraft:
      initializePolymorphicSearch in Klasse PatternLocator
    • isVirtualInvoke

      protected boolean isVirtualInvoke(MethodBinding method, MessageSend messageSend)
      Returns whether the code gen will use an invoke virtual for this message send or not.
    • checkMethodRef

      protected ReferenceBinding checkMethodRef(MethodBinding method, ReferenceExpression referenceExpression)
    • match

      public int match(ASTNode node, MatchingNodeSet nodeSet)
      Beschreibung aus Klasse kopiert: PatternLocator
      Check if the given ast node syntactically matches this pattern. If it does, add it to the match set. Returns the match level.
      Setzt außer Kraft:
      match in Klasse PatternLocator
    • match

      public int match(LambdaExpression node, MatchingNodeSet nodeSet)
      Setzt außer Kraft:
      match in Klasse PatternLocator
    • match

      public int match(MethodDeclaration node, MatchingNodeSet nodeSet)
      Setzt außer Kraft:
      match in Klasse PatternLocator
    • match

      public int match(MemberValuePair node, MatchingNodeSet nodeSet)
      Setzt außer Kraft:
      match in Klasse PatternLocator
    • match

      public int match(MessageSend node, MatchingNodeSet nodeSet)
      Setzt außer Kraft:
      match in Klasse PatternLocator
    • match

      public int match(ReferenceExpression node, MatchingNodeSet nodeSet)
      Setzt außer Kraft:
      match in Klasse PatternLocator
    • match

      public int match(Annotation node, MatchingNodeSet nodeSet)
      Setzt außer Kraft:
      match in Klasse PatternLocator
    • matchContainer

      protected int matchContainer()
      Beschreibung aus Klasse kopiert: 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.
      Setzt außer Kraft:
      matchContainer in Klasse PatternLocator
    • matchLevelAndReportImportRef

      protected void matchLevelAndReportImportRef(ImportReference importRef, Binding binding, MatchLocator locator) throws org.eclipse.core.runtime.CoreException
      Beschreibung aus Klasse kopiert: PatternLocator
      Reports the match of the given import reference if the resolveLevel is high enough.
      Setzt außer Kraft:
      matchLevelAndReportImportRef in Klasse PatternLocator
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • matchMethod

      protected int matchMethod(MethodBinding method, boolean skipImpossibleArg)
    • matchReportReference

      protected void matchReportReference(ASTNode reference, IJavaElement element, Binding elementBinding, int accuracy, MatchLocator locator) throws org.eclipse.core.runtime.CoreException
      Beschreibung aus Klasse kopiert: PatternLocator
      Reports the match of the given reference.
      Setzt außer Kraft:
      matchReportReference in Klasse PatternLocator
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • matchReportReference

      protected void matchReportReference(ASTNode reference, IJavaElement element, IJavaElement localElement, IJavaElement[] otherElements, Binding elementBinding, int accuracy, MatchLocator locator) throws org.eclipse.core.runtime.CoreException
      Beschreibung aus Klasse kopiert: PatternLocator
      Reports the match of the given reference. Also provide a local element to eventually report in match.
      Setzt außer Kraft:
      matchReportReference in Klasse PatternLocator
      Löst aus:
      org.eclipse.core.runtime.CoreException
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.internal.core.search.matching.PatternLocator#matchReportReference(org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode, org.aspectj.org.eclipse.jdt.core.IJavaElement, Binding, int, org.aspectj.org.eclipse.jdt.internal.core.search.matching.MatchLocator)
    • newDeclarationMatch

      public SearchMatch newDeclarationMatch(ASTNode reference, IJavaElement element, Binding elementBinding, int accuracy, int length, MatchLocator locator)
      Setzt außer Kraft:
      newDeclarationMatch in Klasse PatternLocator
    • referenceType

      protected int referenceType()
      Setzt außer Kraft:
      referenceType in Klasse PatternLocator
    • reportDeclaration

      protected void reportDeclaration(MethodBinding methodBinding, MatchLocator locator, SimpleSet knownMethods) throws org.eclipse.core.runtime.CoreException
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • resolveLevel

      public int resolveLevel(ASTNode possibleMatchingNode)
      Beschreibung aus Klasse kopiert: 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.)
      Setzt außer Kraft:
      resolveLevel in Klasse PatternLocator
    • resolveLevel

      public int resolveLevel(Binding binding)
      Beschreibung aus Klasse kopiert: 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.
      Setzt außer Kraft:
      resolveLevel in Klasse PatternLocator
    • resolveLevel

      protected int resolveLevel(MessageSend messageSend)
    • resolveLevel

      protected int resolveLevel(ReferenceExpression referenceExpression)
    • resolveLevelAsSubtype

      protected int resolveLevelAsSubtype(char[] simplePattern, char[] qualifiedPattern, ReferenceBinding type, char[] methodName, TypeBinding[] argumentTypes, char[] packageName, boolean isDefault)
      Returns whether the given reference type binding matches or is a subtype of a type that matches the given qualified pattern. Returns ACCURATE_MATCH if it does. Returns INACCURATE_MATCH if resolve fails Returns IMPOSSIBLE_MATCH if it doesn't.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse PatternLocator