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 | Class and Description |
|---|---|
| private static class | VarArgsChecker.NoVarArgsChecker
Implementation always returning false when |
| private static class | VarArgsChecker.RealVarArgsChecker
Implementation actually using Method.isVarArgs() |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static VarArgsChecker | Returns: new instance of concrete VarArgsChecker subclassCreates a new instance of a concrete subclass of VarArgsChecker, depending
if |
| pack-priv abstract int | |
| pack-priv abstract boolean |
| VarArgsChecker | back to summary |
|---|---|
| private VarArgsChecker() | |
| create | back to summary |
|---|---|
| pack-priv static VarArgsChecker create() Creates a new instance of a concrete subclass of VarArgsChecker, depending
if
| |
| fixedArgs | back to summary |
|---|---|
| pack-priv abstract int fixedArgs(Method m) If variadic, returns the number of fixed arguments to the method.
| |
| isVarArgs | back to summary |
|---|---|
| pack-priv abstract boolean isVarArgs(Method m) Checks if the given method was declared to take a variable number of arguments.
| |
NoVarArgsChecker#isVarArgs(Method)
is called. This implementation will be chosen, if Method#isVarArgs() is not available
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | fixedArgs(Method
Method to be checked m)Implements abstract com. |
| pack-priv boolean | isVarArgs(Method
Method to be checked m)Implements abstract com. |
| NoVarArgsChecker | back to summary |
|---|---|
| private NoVarArgsChecker() | |
| fixedArgs | back to summary |
|---|---|
| pack-priv int fixedArgs(Method m) Implements abstract com. Doc from com. If variadic, returns the number of fixed arguments to the method.
| |
| isVarArgs | back to summary |
|---|---|
| pack-priv boolean isVarArgs(Method m) Implements abstract com. Doc from com. Checks if the given method was declared to take a variable number of arguments.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | fixedArgs(Method
Method to be checked m)Implements abstract com. |
| pack-priv boolean | isVarArgs(Method
Method to be checked m)Implements abstract com. |
| RealVarArgsChecker | back to summary |
|---|---|
| private RealVarArgsChecker() | |
| fixedArgs | back to summary |
|---|---|
| pack-priv int fixedArgs(Method m) Implements abstract com. Doc from com. If variadic, returns the number of fixed arguments to the method.
| |
| isVarArgs | back to summary |
|---|---|
| pack-priv boolean isVarArgs(Method m) Implements abstract com. Doc from com. Checks if the given method was declared to take a variable number of arguments.
| |