类 AttributeMethod


  • public class AttributeMethod
    extends Object
    AnnotationMethod 的包装器
    作者:
    思追(shaco)
    另请参阅:
    AttributeMethods
    • 构造器详细资料

      • AttributeMethod

        public AttributeMethod​(@NotNull
                               @NotNull cc.shacocloud.mirage.utils.annotation.AttributeMethods attributeMethods,
                               @NotNull
                               @NotNull Method method)
    • 方法详细资料

      • getValue

        public Object getValue​(Object obj)
        获取该方法的返回值
      • 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()
      • 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)