Class MethodWrapper<T>
- java.lang.Object
-
- com.djrapitops.plan.extension.implementation.providers.MethodWrapper<T>
-
public class MethodWrapper<T> extends java.lang.Object
Wrap a Method so that it is easier to call.
-
-
Constructor Summary
Constructors Constructor Description MethodWrapper(java.lang.reflect.Method method, java.lang.Class<T> returnType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
callMethod(DataExtension extension, Parameters with)
void
disable()
boolean
equals(java.lang.Object o)
java.lang.String
getMethodName()
MethodType
getMethodType()
java.lang.Class<T>
getReturnType()
int
hashCode()
-
-
-
Constructor Detail
-
MethodWrapper
public MethodWrapper(java.lang.reflect.Method method, java.lang.Class<T> returnType)
-
-
Method Detail
-
callMethod
public T callMethod(DataExtension extension, Parameters with)
-
getMethodName
public java.lang.String getMethodName()
-
getMethodType
public MethodType getMethodType()
-
getReturnType
public java.lang.Class<T> getReturnType()
-
disable
public void disable()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-