Interface AnnotationValue

  • Method Details

    • tag

      char tag()
      Returns the tag character for this type as per 4.7.16.1.
      Returns:
      the tag character for this type as per 4.7.16.1
    • ofEnum

      static AnnotationValue.OfEnumPREVIEW ofEnum(Utf8EntryPREVIEW className, Utf8EntryPREVIEW constantName)
      Returns an annotation element for a enum-valued element.
      Parameters:
      className - the name of the enum class
      constantName - the name of the enum constant
      Returns:
      an annotation element for a enum-valued element
    • ofEnum

      static AnnotationValue.OfEnumPREVIEW ofEnum(ClassDesc className, String constantName)
      Returns an annotation element for a enum-valued element.
      Parameters:
      className - the name of the enum class
      constantName - the name of the enum constant
      Returns:
      an annotation element for a enum-valued element
    • ofClass

      Returns an annotation element for a class-valued element.
      Parameters:
      className - the name of the enum class
      Returns:
      an annotation element for a class-valued element
    • ofClass

      static AnnotationValue.OfClassPREVIEW ofClass(ClassDesc className)
      Returns an annotation element for a class-valued element.
      Parameters:
      className - the name of the enum class
      Returns:
      an annotation element for a class-valued element
    • ofString

      Returns an annotation element for a string-valued element.
      Parameters:
      value - the string
      Returns:
      an annotation element for a string-valued element
    • ofString

      static AnnotationValue.OfConstantPREVIEW ofString(String value)
      Returns an annotation element for a string-valued element.
      Parameters:
      value - the string
      Returns:
      an annotation element for a string-valued element
    • ofDouble

      Returns an annotation element for a double-valued element.
      Parameters:
      value - the double value
      Returns:
      an annotation element for a double-valued element
    • ofDouble

      static AnnotationValue.OfConstantPREVIEW ofDouble(double value)
      Returns an annotation element for a double-valued element.
      Parameters:
      value - the double value
      Returns:
      an annotation element for a double-valued element
    • ofFloat

      Returns an annotation element for a float-valued element.
      Parameters:
      value - the float value
      Returns:
      an annotation element for a float-valued element
    • ofFloat

      static AnnotationValue.OfConstantPREVIEW ofFloat(float value)
      Returns an annotation element for a float-valued element.
      Parameters:
      value - the float value
      Returns:
      an annotation element for a float-valued element
    • ofLong

      Returns an annotation element for a long-valued element.
      Parameters:
      value - the long value
      Returns:
      an annotation element for a long-valued element
    • ofLong

      static AnnotationValue.OfConstantPREVIEW ofLong(long value)
      Returns an annotation element for a long-valued element.
      Parameters:
      value - the long value
      Returns:
      an annotation element for a long-valued element
    • ofInt

      Returns an annotation element for an int-valued element.
      Parameters:
      value - the int value
      Returns:
      an annotation element for an int-valued element
    • ofInt

      static AnnotationValue.OfConstantPREVIEW ofInt(int value)
      Returns an annotation element for an int-valued element.
      Parameters:
      value - the int value
      Returns:
      an annotation element for an int-valued element
    • ofShort

      Returns an annotation element for a short-valued element.
      Parameters:
      value - the short value
      Returns:
      an annotation element for a short-valued element
    • ofShort

      static AnnotationValue.OfConstantPREVIEW ofShort(short value)
      Returns an annotation element for a short-valued element.
      Parameters:
      value - the short value
      Returns:
      an annotation element for a short-valued element
    • ofChar

      Returns an annotation element for a char-valued element.
      Parameters:
      value - the char value
      Returns:
      an annotation element for a char-valued element
    • ofChar

      static AnnotationValue.OfConstantPREVIEW ofChar(char value)
      Returns an annotation element for a char-valued element.
      Parameters:
      value - the char value
      Returns:
      an annotation element for a char-valued element
    • ofByte

      Returns an annotation element for a byte-valued element.
      Parameters:
      value - the byte value
      Returns:
      an annotation element for a byte-valued element
    • ofByte

      static AnnotationValue.OfConstantPREVIEW ofByte(byte value)
      Returns an annotation element for a byte-valued element.
      Parameters:
      value - the byte value
      Returns:
      an annotation element for a byte-valued element
    • ofBoolean

      Returns an annotation element for a boolean-valued element.
      Parameters:
      value - the boolean value
      Returns:
      an annotation element for a boolean-valued element
    • ofBoolean

      static AnnotationValue.OfConstantPREVIEW ofBoolean(boolean value)
      Returns an annotation element for a boolean-valued element.
      Parameters:
      value - the boolean value
      Returns:
      an annotation element for a boolean-valued element
    • ofAnnotation

      Returns an annotation element for an annotation-valued element.
      Parameters:
      value - the annotation
      Returns:
      an annotation element for an annotation-valued element
    • ofArray

      Returns an annotation element for an array-valued element.
      Parameters:
      values - the values
      Returns:
      an annotation element for an array-valued element
    • ofArray

      Returns an annotation element for an array-valued element.
      Parameters:
      values - the values
      Returns:
      an annotation element for an array-valued element
    • of

      static AnnotationValuePREVIEW of(Object value)
      Returns an annotation element. The value parameter must be a primitive, a wrapper of primitive, a String, a ClassDesc, an enum constant, or an array of one of these.
      Parameters:
      value - the annotation value
      Returns:
      an annotation element
      Throws:
      IllegalArgumentException - when the value parameter is not a primitive, a wrapper of primitive, a String, a ClassDesc, an enum constant, or an array of one of these.