Package me.ehp246.aufjms.core.reflection
Class ReflectingType<T>
java.lang.Object
me.ehp246.aufjms.core.reflection.ReflectingType<T>
- Since:
- 1.0
- Author:
- Lei Yang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindMethod(String name) Returns the named method that does not have any parameter.findMethod(String name, Class<?>... parameters) findMethods(Class<? extends Annotation> annotationClass) Returns all methods that have the given annotation.findMethods(String name) Returns all methods that have the given name ignoring the parameters.<A extends Annotation>
Optional<A>findOnType(Class<A> annotationType) getType()static <T> ReflectingType<T>
-
Constructor Details
-
ReflectingType
-
-
Method Details
-
reflect
-
findMethod
Returns the named method that does not have any parameter. Returns null if not found.- Parameters:
name-- Returns:
-
findMethod
-
findMethods
Returns all methods that have the given name ignoring the parameters.- Parameters:
name-- Returns:
-
findMethods
Returns all methods that have the given annotation.- Parameters:
annotationClass-- Returns:
-
getType
-
findOnType
-