public class MethodSearchResult
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) MethodData |
data
The method that was found.
|
private java.lang.String[] |
overrides
Type overrides for fuzzy matches.
|
private boolean |
polyArgs
Flag indicating if this result is a pseudo-dynamic call caused by poly arguments, when multiple
overload targets were found during fuzzy match.
|
| Constructor and Description |
|---|
MethodSearchResult()
Create an dynamic invocation instance.
|
MethodSearchResult(MethodData data,
java.lang.String[] overrides)
Create an instance using the given result.
|
MethodSearchResult(MethodData data,
java.lang.String[] overrides,
boolean polyArgs)
Create an instance using the given result.
|
| Modifier and Type | Method and Description |
|---|---|
MethodData |
getData()
Get the resolved
method. |
java.lang.String[] |
getOverrides()
Obtain any types overrides which are needed because of fuzzy matching.
|
(package private) boolean |
isDynamic()
Reports if this is a dynamic invocation.
|
(package private) boolean |
isPolyArgs()
Check if the method call has
poly arguments. |
final MethodData data
private final java.lang.String[] overrides
private final boolean polyArgs
public MethodSearchResult()
MethodSearchResult(MethodData data, java.lang.String[] overrides)
data - The result of the search.overrides - Type overrides for fuzzy matches.MethodSearchResult(MethodData data, java.lang.String[] overrides, boolean polyArgs)
data - The result of the search.overrides - Type overrides for fuzzy matches.polyArgs - Flag indicating if this result is a pseudo-dynamic call caused by poly arguments, when
multiple overload targets were found during fuzzy match.public java.lang.String[] getOverrides()
null if there are no overrides.public MethodData getData()
method.boolean isDynamic()
true if this is a dynamic invocation.boolean isPolyArgs()
poly arguments.polyArgs flag.