Class JavassistAnnotationFactory
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.pojo.JavassistAnnotationFactory
Contains helper methods for creating annotations with javassist.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAnnotationsToClass
(javassist.CtClass ctClass, Collection<javassist.bytecode.annotation.Annotation> annotations) static void
addAnnotationsToField
(javassist.CtField ctField, Collection<javassist.bytecode.annotation.Annotation> annotations) static javassist.bytecode.annotation.Annotation
createAnnotation
(Class<? extends Annotation> annotationClass, javassist.bytecode.ConstPool constPool, Map<String, javassist.bytecode.annotation.MemberValue> values) static javassist.bytecode.AnnotationsAttribute
createAnnotationAttribute
(Collection<javassist.bytecode.annotation.Annotation> annotations, javassist.bytecode.ConstPool constPool)
-
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)
-