public class MethodWrapper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.reflect.Constructor<?> |
constructor
The wrapped constructor or
null in case of a wrapped method. |
protected java.lang.reflect.Method |
method
The wrapped method or
null in case of a wrapped constructor. |
| Constructor and Description |
|---|
MethodWrapper(java.lang.reflect.Constructor<?> constructor)
Creates a new wrapper for the designated constructor.
|
MethodWrapper(java.lang.reflect.Method method)
Creates a new wrapper for the designated method.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Constructor<?> |
getConstructor()
Gets the wrapped constructor or
null in case of a wrapped method. |
java.lang.reflect.Method |
getMethod()
Gets the wrapped method or
null in case of a wrapped constructor. |
java.lang.String |
getName()
Gets the name of the wrapped method or constructor.
|
java.lang.Class<?>[] |
getParameterTypes()
Gets the parameter types of the wrapped method or constructor.
|
protected final java.lang.reflect.Method method
null in case of a wrapped constructor.protected final java.lang.reflect.Constructor<?> constructor
null in case of a wrapped method.public MethodWrapper(java.lang.reflect.Method method)
method - The wrapped method.public MethodWrapper(java.lang.reflect.Constructor<?> constructor)
constructor - The wrapped constructor.public java.lang.reflect.Method getMethod()
null in case of a wrapped constructor.null in case of a wrapped constructor.public java.lang.reflect.Constructor<?> getConstructor()
null in case of a wrapped method.null in case of a wrapped method.public java.lang.String getName()
public java.lang.Class<?>[] getParameterTypes()