1 Reply Latest reply on Sep 30, 2017 12:26 PM by gariklolkin

    Roaster: How to add a list of annotations

    gariklolkin

      Hi all.

      I need to add the following annotation. Can somebody help me?

       

      @AllowedForFunctionActionCouples({

         @AllowedForFunctionActionCouple(function = FC_FUNCTION, action = AC_ANY)

      })

        • 1. Re: Roaster: How to add a list of annotations
          gariklolkin

          Yes, by the way, there is a solution.

           

          AnnotationSource annotationSource = methodToProcess.addAnnotation(AllowedForFunctionActionCouples.class);

            annotationSource.addAnnotationValue(AllowedForFunctionActionCouple.class)

            .setStringValue("function", "FC_FUNCTION")

            .setLiteralValue("action", "AC_ANY");