Class JavaSearchMethodNameMatch
java.lang.Object
org.aspectj.org.eclipse.jdt.core.search.MethodNameMatch
org.aspectj.org.eclipse.jdt.internal.core.search.JavaSearchMethodNameMatch
Java Search concrete class for a method name match.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the accessibility of the declaring type of the method name matchReturns a java model method handle.int
Returns the modifiers of the matched method.void
setAccessibility(int accessibility)
toString()
-
Constructor Details
-
JavaSearchMethodNameMatch
-
-
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 classMethodNameMatch
- Returns:
- the accessibility of the declaring type of the method name which may be
IAccessRule.K_ACCESSIBLE
,IAccessRule.K_DISCOURAGED
orIAccessRule.K_NON_ACCESSIBLE
. The default returned value isIAccessRule.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 classMethodNameMatch
- Returns:
- the type modifiers
-
getMethod
Description copied from class:MethodNameMatch
Returns a java model method handle. This handle may exist or not, but is not supposed to benull
.This is a handle-only method as neither Java Model nor classpath initializations are done while calling this method.
- Specified by:
getMethod
in classMethodNameMatch
- Returns:
- the non-null handle on matched java model method.
- See Also:
IMethod
-
setAccessibility
public void setAccessibility(int accessibility) -
toString
-