Interface MethodInfo
- All Superinterfaces:
AccessModifierOwner,AnnotatedElementInfo,ExecutableInfo,MemberInfo
MethodInfo
- Version:
- 0.0.1
- Author:
- scx567888
-
Method Summary
Modifier and TypeMethodDescriptiondefault AnnotatedElementannotatedElementdefault ObjectbooleanisAbstractbooleanisDefaultbooleanisFinal()是否为 final 方法booleanisNative()isNativebooleanisStatic()是否为 static 方法name()名称原始 Method返回值default voidsetAccessible(boolean flag) 允许访问获取当前方法重写的父类的方法 (可能为空)Methods inherited from interface cool.scx.reflect.AccessModifierOwner
accessModifierMethods inherited from interface cool.scx.reflect.AnnotatedElementInfo
annotations, findAnnotation, findAnnotationsMethods inherited from interface cool.scx.reflect.ExecutableInfo
parametersMethods inherited from interface cool.scx.reflect.MemberInfo
declaringClass
-
Method Details
-
rawMethod
Method rawMethod()原始 Method -
name
String name()名称 -
isAbstract
boolean isAbstract()isAbstract -
isFinal
boolean isFinal()是否为 final 方法 -
isStatic
boolean isStatic()是否为 static 方法 -
isNative
boolean isNative()isNative -
isDefault
boolean isDefault()isDefault -
returnType
TypeInfo returnType()返回值 -
superMethod
MethodInfo superMethod()获取当前方法重写的父类的方法 (可能为空) -
setAccessible
default void setAccessible(boolean flag) Description copied from interface:MemberInfo允许访问- Specified by:
setAccessiblein interfaceMemberInfo
-
invoke
default Object invoke(Object obj, Object... args) throws InvocationTargetException, IllegalAccessException -
annotatedElement
Description copied from interface:AnnotatedElementInfoannotatedElement- Specified by:
annotatedElementin interfaceAnnotatedElementInfo
-