类 AttributeMethod
- java.lang.Object
-
- cc.shacocloud.mirage.utils.annotation.AttributeMethod
-
public class AttributeMethod extends Object
Annotation的Method的包装器- 作者:
- 思追(shaco)
- 另请参阅:
AttributeMethods
-
-
构造器概要
构造器 构造器 说明 AttributeMethod(@NotNull cc.shacocloud.mirage.utils.annotation.AttributeMethods attributeMethods, @NotNull Method method)
-
方法概要
-
-
-
构造器详细资料
-
AttributeMethod
public AttributeMethod(@NotNull @NotNull cc.shacocloud.mirage.utils.annotation.AttributeMethods attributeMethods, @NotNull @NotNull Method method)
-
-
方法详细资料
-
getSourceMethod
public Method getSourceMethod()
- 返回:
- 获取源方法
-
getSourceAnnotationType
public Class<? extends Annotation> getSourceAnnotationType()
- 返回:
- 获取源注解类型
-
makeAccessible
public void makeAccessible()
使该方法可以被访问
-
getDeclaringClass
public Class<?> getDeclaringClass()
-
getName
public String getName()
-
getModifiers
public int getModifiers()
-
getTypeParameters
public TypeVariable<Method>[] getTypeParameters()
-
getReturnType
public Class<?> getReturnType()
-
getGenericReturnType
public Type getGenericReturnType()
-
getParameterTypes
public Class<?>[] getParameterTypes()
-
getParameterCount
public int getParameterCount()
-
getGenericParameterTypes
public Type[] getGenericParameterTypes()
-
getExceptionTypes
public Class<?>[] getExceptionTypes()
-
getGenericExceptionTypes
public Type[] getGenericExceptionTypes()
-
toGenericString
public String toGenericString()
-
isBridge
public boolean isBridge()
-
isVarArgs
public boolean isVarArgs()
-
isSynthetic
public boolean isSynthetic()
-
isDefault
public boolean isDefault()
-
getDefaultValue
public Object getDefaultValue()
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
-
getParameterAnnotations
public Annotation[][] getParameterAnnotations()
-
getAnnotatedReturnType
public AnnotatedType getAnnotatedReturnType()
-
getParameters
public Parameter[] getParameters()
-
getAnnotationsByType
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass)
-
getAnnotatedReceiverType
public AnnotatedType getAnnotatedReceiverType()
-
getAnnotatedParameterTypes
public AnnotatedType[] getAnnotatedParameterTypes()
-
getAnnotatedExceptionTypes
public AnnotatedType[] getAnnotatedExceptionTypes()
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
-
getAnnotations
public Annotation[] getAnnotations()
-
getDeclaredAnnotation
public <T extends Annotation> T getDeclaredAnnotation(Class<T> annotationClass)
-
getDeclaredAnnotationsByType
public <T extends Annotation> T[] getDeclaredAnnotationsByType(Class<T> annotationClass)
-
-