Class AnnotationFactory


  • public class AnnotationFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.annotation.Annotation buildAnnotation​(org.drools.drl.ast.descr.AnnotationDescr annotationDescr, java.lang.Class<?> annotationClass)  
      static java.lang.annotation.Annotation buildAnnotation​(org.drools.util.TypeResolver typeResolver, org.drools.drl.ast.descr.AnnotationDescr annotationDescr)  
      static <A extends java.lang.annotation.Annotation>
      A
      getTypedAnnotation​(org.drools.drl.ast.descr.AnnotatedBaseDescr annotatedBaseDescr, java.lang.Class<A> annotationClass)  
      static org.drools.base.rule.Annotated toAnnotated​(org.drools.drl.ast.descr.AnnotatedBaseDescr annotatedBaseDescr)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotationFactory

        public AnnotationFactory()
    • Method Detail

      • buildAnnotation

        public static java.lang.annotation.Annotation buildAnnotation​(org.drools.util.TypeResolver typeResolver,
                                                                      org.drools.drl.ast.descr.AnnotationDescr annotationDescr)
      • buildAnnotation

        public static java.lang.annotation.Annotation buildAnnotation​(org.drools.drl.ast.descr.AnnotationDescr annotationDescr,
                                                                      java.lang.Class<?> annotationClass)
      • getTypedAnnotation

        public static <A extends java.lang.annotation.Annotation> A getTypedAnnotation​(org.drools.drl.ast.descr.AnnotatedBaseDescr annotatedBaseDescr,
                                                                                       java.lang.Class<A> annotationClass)
      • toAnnotated

        public static org.drools.base.rule.Annotated toAnnotated​(org.drools.drl.ast.descr.AnnotatedBaseDescr annotatedBaseDescr)