Package com.sun.jna
Klasse VarArgsChecker
java.lang.Object
com.sun.jna.VarArgsChecker
Class for checking if a method has vararg parameters.
Use method
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)
.- Autor:
- Max Bureck
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) static VarArgsChecker
create()
Creates a new instance of a concrete subclass of VarArgsChecker, depending ifMethod.isVarArgs()
exists.(Package privat) abstract int
If variadic, returns the number of fixed arguments to the method.(Package privat) abstract boolean
Checks if the given method was declared to take a variable number of arguments.
-
Methodendetails
-
create
Creates a new instance of a concrete subclass of VarArgsChecker, depending ifMethod.isVarArgs()
exists.- Gibt zurück:
- new instance of concrete VarArgsChecker subclass
-
isVarArgs
Checks if the given method was declared to take a variable number of arguments.- Parameter:
m
- Method to be checked- Gibt zurück:
true
if the given method takes a variable number of arguments,false
otherwise.
-
fixedArgs
If variadic, returns the number of fixed arguments to the method.- Parameter:
m
- Method to be checked- Gibt zurück:
- Number of fixed arguments if the given method takes a variable number of arguments, zero otherwise.
-