Class MethodInfo
java.lang.Object
cool.scx.reflect.MethodInfo
- All Implemented Interfaces:
AnnotatedElementInfo,ExecutableInfo,MemberInfo
MethodInfo
- Version:
- 0.0.1
- Author:
- scx567888
-
Method Summary
Modifier and TypeMethodDescription获取所有的注解 包括继承自父级的注解 (假设存在继承的话, 如类或方法)元素上的注解booleanisFinal()method()name()com.fasterxml.jackson.databind.JavaTypevoidsetAccessible(boolean flag) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cool.scx.reflect.AnnotatedElementInfo
findAnnotation, findAnnotationFromAll, findAnnotationList, findAnnotationListFromAll
-
Method Details
-
method
-
invoke
public Object invoke(Object obj, Object... args) throws InvocationTargetException, IllegalAccessException -
classInfo
- Specified by:
classInfoin interfaceMemberInfo
-
name
-
accessModifier
- Specified by:
accessModifierin interfaceMemberInfo
-
methodType
-
returnType
public com.fasterxml.jackson.databind.JavaType returnType() -
parameters
- Specified by:
parametersin interfaceExecutableInfo
-
superMethod
-
annotations
Description copied from interface:AnnotatedElementInfo元素上的注解- Specified by:
annotationsin interfaceAnnotatedElementInfo
-
allAnnotations
Description copied from interface:AnnotatedElementInfo获取所有的注解 包括继承自父级的注解 (假设存在继承的话, 如类或方法)- Specified by:
allAnnotationsin interfaceAnnotatedElementInfo
-
isFinal
public boolean isFinal() -
setAccessible
public void setAccessible(boolean flag) - Specified by:
setAccessiblein interfaceMemberInfo
-