Class ExtensionMethod
- java.lang.Object
-
- com.djrapitops.plan.extension.extractor.ExtensionMethod
-
public class ExtensionMethod extends java.lang.Object
Implementation detail, abstracts away some method reflection to a more usable API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExtensionMethod.ParameterType
-
Constructor Summary
Constructors Constructor Description ExtensionMethod(DataExtension extension, java.lang.reflect.Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
<T extends java.lang.annotation.Annotation>
java.util.Optional<T>getAnnotation(java.lang.Class<T> ofType)
<T extends java.lang.annotation.Annotation>
TgetAnnotationOrNull(java.lang.Class<T> ofType)
<T extends java.lang.annotation.Annotation>
TgetExistingAnnotation(java.lang.Class<T> ofType)
java.lang.reflect.Method
getMethod()
java.lang.String
getMethodName()
ExtensionMethod.ParameterType
getParameterType()
java.lang.Class<?>
getReturnType()
int
hashCode()
boolean
isInaccessible()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ExtensionMethod
public ExtensionMethod(DataExtension extension, java.lang.reflect.Method method)
-
-
Method Detail
-
isInaccessible
public boolean isInaccessible()
-
getAnnotation
public <T extends java.lang.annotation.Annotation> java.util.Optional<T> getAnnotation(java.lang.Class<T> ofType)
-
getExistingAnnotation
public <T extends java.lang.annotation.Annotation> T getExistingAnnotation(java.lang.Class<T> ofType)
-
getAnnotationOrNull
public <T extends java.lang.annotation.Annotation> T getAnnotationOrNull(java.lang.Class<T> ofType)
-
getParameterType
public ExtensionMethod.ParameterType getParameterType()
-
getReturnType
public java.lang.Class<?> getReturnType()
-
getMethod
public java.lang.reflect.Method getMethod()
-
getMethodName
public java.lang.String getMethodName()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-