Class JavaSearchMethodNameMatch

java.lang.Object
org.aspectj.org.eclipse.jdt.core.search.MethodNameMatch
org.aspectj.org.eclipse.jdt.internal.core.search.JavaSearchMethodNameMatch

public class JavaSearchMethodNameMatch extends MethodNameMatch
Java Search concrete class for a method name match.
  • Constructor Details

    • JavaSearchMethodNameMatch

      public JavaSearchMethodNameMatch(IMethod method, int modifiers)
  • Method Details

    • getAccessibility

      public int getAccessibility()
      Description copied from class: MethodNameMatch
      Returns the accessibility of the declaring type of the method name match
      Specified by:
      getAccessibility in class MethodNameMatch
      Returns:
      the accessibility of the declaring type of the method name which may be IAccessRule.K_ACCESSIBLE, IAccessRule.K_DISCOURAGED or IAccessRule.K_NON_ACCESSIBLE. The default returned value is IAccessRule.K_ACCESSIBLE.
      See Also:
      IAccessRule
    • getModifiers

      public int getModifiers()
      Description copied from class: MethodNameMatch
      Returns the modifiers of the matched method.

      This is a handle-only method as neither Java Model nor classpath initialization is done while calling this method.

      Specified by:
      getModifiers in class MethodNameMatch
      Returns:
      the type modifiers
    • getMethod

      public IMethod getMethod()
      Description copied from class: MethodNameMatch
      Returns a java model method handle. This handle may exist or not, but is not supposed to be null.

      This is a handle-only method as neither Java Model nor classpath initializations are done while calling this method.

      Specified by:
      getMethod in class MethodNameMatch
      Returns:
      the non-null handle on matched java model method.
      See Also:
      IMethod
    • setAccessibility

      public void setAccessibility(int accessibility)
    • toString

      public String toString()
      Overrides:
      toString in class Object