Package com.sun.jna
Class VarArgsChecker
- java.lang.Object
- 
- com.sun.jna.VarArgsChecker
 
- 
 abstract class VarArgsChecker extends java.lang.ObjectClass for checking if a method has vararg parameters. Use methodcreate()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 returnfalseon calls toisVarArgs(Method).- Author:
- Max Bureck
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) static VarArgsCheckercreate()Creates a new instance of a concrete subclass of VarArgsChecker, depending ifMethod.isVarArgs()exists.(package private) abstract intfixedArgs(java.lang.reflect.Method m)If variadic, returns the number of fixed arguments to the method.(package private) abstract booleanisVarArgs(java.lang.reflect.Method m)Checks if the given method was declared to take a variable number of arguments.
 
- 
- 
- 
Method Detail- 
createstatic VarArgsChecker create() Creates a new instance of a concrete subclass of VarArgsChecker, depending ifMethod.isVarArgs()exists.- Returns:
- new instance of concrete VarArgsChecker subclass
 
 - 
isVarArgsabstract boolean isVarArgs(java.lang.reflect.Method m) Checks if the given method was declared to take a variable number of arguments.- Parameters:
- m- Method to be checked
- Returns:
- trueif the given method takes a variable number of arguments,- falseotherwise.
 
 - 
fixedArgsabstract int fixedArgs(java.lang.reflect.Method m) If variadic, returns the number of fixed arguments to the method.- Parameters:
- m- Method to be checked
- Returns:
- Number of fixed arguments if the given method takes a variable number of arguments, zero otherwise.
 
 
- 
 
-