Class JAnnotationArrayMember

    • Constructor Detail

      • JAnnotationArrayMember

        JAnnotationArrayMember​(JCodeModel owner)
    • Method Detail

      • param

        public JAnnotationArrayMember param​(java.lang.String value)
        Adds an array member to this annotation
        Parameters:
        value - Adds a string value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • param

        public JAnnotationArrayMember param​(boolean value)
        Adds an array member to this annotation
        Parameters:
        value - Adds a boolean value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • param

        public JAnnotationArrayMember param​(byte value)
        Adds an array member to this annotation
        Parameters:
        value - Adds a byte value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • param

        public JAnnotationArrayMember param​(char value)
        Adds an array member to this annotation
        Parameters:
        value - Adds a char value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • param

        public JAnnotationArrayMember param​(double value)
        Adds an array member to this annotation
        Parameters:
        value - Adds a double value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • param

        public JAnnotationArrayMember param​(long value)
        Adds an array member to this annotation
        Parameters:
        value - Adds a long value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • param

        public JAnnotationArrayMember param​(short value)
        Adds an array member to this annotation
        Parameters:
        value - Adds a short value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • param

        public JAnnotationArrayMember param​(int value)
        Adds an array member to this annotation
        Parameters:
        value - Adds an int value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • param

        public JAnnotationArrayMember param​(float value)
        Adds an array member to this annotation
        Parameters:
        value - Adds a float value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • param

        public JAnnotationArrayMember param​(java.lang.Enum<?> value)
        Adds a enum array member to this annotation
        Parameters:
        value - Adds a enum value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • param

        public JAnnotationArrayMember param​(JEnumConstant value)
        Adds a enum array member to this annotation
        Parameters:
        value - Adds a enum value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • param

        public JAnnotationArrayMember param​(JExpression value)
        Adds an expression array member to this annotation
        Parameters:
        value - Adds an expression value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • param

        public JAnnotationArrayMember param​(java.lang.Class<?> value)
        Adds a class array member to this annotation
        Parameters:
        value - Adds a class value to the array member
        Returns:
        The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
      • annotate

        public JAnnotationUse annotate​(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
        Adds a new annotation to the array.
        Specified by:
        annotate in interface JAnnotatable
        Parameters:
        clazz - The annotation class to annotate the program element with
      • annotate

        public JAnnotationUse annotate​(JClass clazz)
        Adds a new annotation to the array.
        Specified by:
        annotate in interface JAnnotatable
        Parameters:
        clazz - The annotation class to annotate the program element with
      • annotate2

        public <W extends JAnnotationWriter> W annotate2​(java.lang.Class<W> clazz)
        Description copied from interface: JAnnotatable
        Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations.
        Specified by:
        annotate2 in interface JAnnotatable