Package org.eclipse.jdt.core.search
Class MethodNameMatch
java.lang.Object
org.eclipse.jdt.core.search.MethodNameMatch
A match collected while
searching
for
all type names methods using a requestor
.
The method of this match is available from getMethod()
.
- Since:
- 3.12
- See Also:
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int
Returns the accessibility of the declaring type of the method name matchabstract IMethod
Returns a java model method handle.abstract int
Returns the modifiers of the matched method.
-
Constructor Details
-
MethodNameMatch
public MethodNameMatch()
-
-
Method Details
-
getAccessibility
public abstract int getAccessibility()Returns the accessibility of the declaring type of the method name match- 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:
-
getModifiers
public abstract int getModifiers()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.
- Returns:
- the type modifiers
-
getMethod
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.
- Returns:
- the non-null handle on matched java model method.
- See Also:
-