abstract class VarArgsChecker
extends java.lang.Object
create()
to create an instance
of this class. How the returned instance work depends on the capabilities
of the underlying JVM implementation. On older versions of the VM not supporting
varargs, the returned VarArgsChecker will always return false
on calls to isVarArgs(Method)
.Modifier and Type | Method and Description |
---|---|
(package private) static VarArgsChecker |
create()
Creates a new instance of a concrete subclass of VarArgsChecker, depending
if
Method.isVarArgs() exists. |
(package private) abstract int |
fixedArgs(java.lang.reflect.Method m)
If variadic, returns the number of fixed arguments to the method.
|
(package private) abstract boolean |
isVarArgs(java.lang.reflect.Method m)
Checks if the given method was declared to take a variable number of arguments.
|
static VarArgsChecker create()
Method.isVarArgs()
exists.abstract boolean isVarArgs(java.lang.reflect.Method m)
m
- Method to be checkedtrue
if the given method takes a variable number of arguments, false
otherwise.abstract int fixedArgs(java.lang.reflect.Method m)
m
- Method to be checked