Class JavassistAnnotationFactory

java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.pojo.JavassistAnnotationFactory

public abstract class JavassistAnnotationFactory extends Object
Contains helper methods for creating annotations with javassist.
  • Method Details

    • createAnnotation

      public static javassist.bytecode.annotation.Annotation createAnnotation(Class<? extends Annotation> annotationClass, javassist.bytecode.ConstPool constPool, Map<String,javassist.bytecode.annotation.MemberValue> values)
    • createAnnotationAttribute

      public static javassist.bytecode.AnnotationsAttribute createAnnotationAttribute(Collection<javassist.bytecode.annotation.Annotation> annotations, javassist.bytecode.ConstPool constPool)
    • addAnnotationsToClass

      public static void addAnnotationsToClass(javassist.CtClass ctClass, Collection<javassist.bytecode.annotation.Annotation> annotations)
    • addAnnotationsToField

      public static void addAnnotationsToField(javassist.CtField ctField, Collection<javassist.bytecode.annotation.Annotation> annotations)