@SubtypeOf(value=UnknownMethod.class) @Retention(value=RUNTIME) @Target(value={TYPE_USE,TYPE_PARAMETER}) public @interface MethodVal
Method
or
Constructor
values. If an
expression's type has @MethodVal, then the expression's
run-time value is one of those values.
Each of @MethodVal's argument lists must be of equal length, and { className[i], methodName[i], params[i] } represents one of the Method or Constructor values in the set.
Modifier and Type | Required Element and Description |
---|---|
String[] |
className
The binary name
of the class that declares this method.
|
String[] |
methodName
The name of the method that this Method object represents.
|
int[] |
params
The number of parameters to the method.
|
public abstract String[] className
public abstract String[] methodName