Java Reflection Annotation getAnnotationFullname(Annotation annotation)

Here you can find the source of getAnnotationFullname(Annotation annotation)

Description

get Annotation Fullname

License

Open Source License

Declaration

static public String getAnnotationFullname(Annotation annotation) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.lang.annotation.Annotation;

public class Main {
    static public String getAnnotationFullname(Annotation annotation) {
        return getAnnotationFullname(annotation.annotationType());
    }//from   w  w  w .  j a  v  a2  s  . c  om

    static public String getAnnotationFullname(Class<? extends Annotation> type) {
        String[] parts = type.toString().split(" ");
        return parts[1];
    }
}

Related

  1. getAnnotationFromEntityOrInterface( Class annotationType, Class entity)
  2. getAnnotationFromField(Object object, Class annotationClass)
  3. getAnnotationFromJoinpointMethod(ProceedingJoinPoint joinpoint, Class annotationClass)
  4. getAnnotationFromStackTrace(Class annotationClass)
  5. getAnnotationFromWeldBean(Object target, Class annotation)
  6. getAnnotationInClass( final Class annotationClass, final Class clazz)
  7. getAnnotationInHeirarchy(Class annotationClass, Class aClass)
  8. getAnnotationInherited(Class type, Class annotationClass)
  9. getAnnotationInstances(Class clazz, Class annotationClass)