Package me.ehp246.aufjms.core.reflection
Class ReflectedType<T>
java.lang.Object
me.ehp246.aufjms.core.reflection.ReflectedType<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> ReflectedType<T>streamMethodsWith(Class<? extends Annotation> annotationType) streamSuppliersWith(Class<? extends Annotation> annotationClass)
-
Constructor Details
-
ReflectedType
-
-
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
-
streamSuppliersWith
-
streamMethodsWith
-