Enum AnnotationValue.RenderingDispatcher

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      JAVA_14_CAPABLE_VM
      A rendering dispatcher for Java 14 onward.
      JAVA_9_CAPABLE_VM
      A rendering dispatcher for Java 9 onward.
      LEGACY_VM
      A rendering dispatcher for any VM previous to Java 9.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RenderingDispatcher​(char openingBrace, char closingBrace)
      Creates a new rendering dispatcher.
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int toComponentTag​(TypeDescription typeDescription)
      Resolves the supplied type description's component tag.
      java.lang.String toSourceString​(boolean value)
      Represents the supplied boolean value as a String.
      java.lang.String toSourceString​(byte value)
      Represents the supplied boolean value as a String.
      abstract java.lang.String toSourceString​(char value)
      Represents the supplied char value as a String.
      abstract java.lang.String toSourceString​(double value)
      Represents the supplied double value as a String.
      abstract java.lang.String toSourceString​(float value)
      Represents the supplied float value as a String.
      java.lang.String toSourceString​(int value)
      Represents the supplied int value as a String.
      abstract java.lang.String toSourceString​(long value)
      Represents the supplied long value as a String.
      java.lang.String toSourceString​(short value)
      Represents the supplied short value as a String.
      abstract java.lang.String toSourceString​(java.lang.String value)
      Represents the supplied String value as a String.
      java.lang.String toSourceString​(java.util.List<?> values)
      Represents the supplied list elements as a String.
      abstract java.lang.String toSourceString​(TypeDescription value)
      Represents the supplied TypeDescription value as a String.
      static AnnotationValue.RenderingDispatcher valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AnnotationValue.RenderingDispatcher[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • openingBrace

        private final char openingBrace
        The opening brace of an array String representation.
      • closingBrace

        private final char closingBrace
        The closing brace of an array String representation.
    • Constructor Detail

      • RenderingDispatcher

        private RenderingDispatcher​(char openingBrace,
                                    char closingBrace)
        Creates a new rendering dispatcher.
        Parameters:
        openingBrace - The opening brace of an array String representation.
        closingBrace - The closing brace of an array String representation.
    • Method Detail

      • values

        public static AnnotationValue.RenderingDispatcher[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AnnotationValue.RenderingDispatcher c : AnnotationValue.RenderingDispatcher.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AnnotationValue.RenderingDispatcher valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toSourceString

        public java.lang.String toSourceString​(boolean value)
        Represents the supplied boolean value as a String.
        Parameters:
        value - The boolean value to render.
        Returns:
        An appropriate String representation.
      • toSourceString

        public java.lang.String toSourceString​(byte value)
        Represents the supplied boolean value as a String.
        Parameters:
        value - The boolean value to render.
        Returns:
        An appropriate String representation.
      • toSourceString

        public java.lang.String toSourceString​(short value)
        Represents the supplied short value as a String.
        Parameters:
        value - The short value to render.
        Returns:
        An appropriate String representation.
      • toSourceString

        public abstract java.lang.String toSourceString​(char value)
        Represents the supplied char value as a String.
        Parameters:
        value - The char value to render.
        Returns:
        An appropriate String representation.
      • toSourceString

        public java.lang.String toSourceString​(int value)
        Represents the supplied int value as a String.
        Parameters:
        value - The int value to render.
        Returns:
        An appropriate String representation.
      • toSourceString

        public abstract java.lang.String toSourceString​(long value)
        Represents the supplied long value as a String.
        Parameters:
        value - The long value to render.
        Returns:
        An appropriate String representation.
      • toSourceString

        public abstract java.lang.String toSourceString​(float value)
        Represents the supplied float value as a String.
        Parameters:
        value - The float value to render.
        Returns:
        An appropriate String representation.
      • toSourceString

        public abstract java.lang.String toSourceString​(double value)
        Represents the supplied double value as a String.
        Parameters:
        value - The double value to render.
        Returns:
        An appropriate String representation.
      • toSourceString

        public abstract java.lang.String toSourceString​(java.lang.String value)
        Represents the supplied String value as a String.
        Parameters:
        value - The String value to render.
        Returns:
        An appropriate String representation.
      • toSourceString

        public abstract java.lang.String toSourceString​(TypeDescription value)
        Represents the supplied TypeDescription value as a String.
        Parameters:
        value - The TypeDescription value to render.
        Returns:
        An appropriate String representation.
      • toSourceString

        public java.lang.String toSourceString​(java.util.List<?> values)
        Represents the supplied list elements as a String.
        Parameters:
        values - The elements to render where each element is represented by its Object.toString() representation.
        Returns:
        An appropriate String representation.
      • toComponentTag

        public int toComponentTag​(TypeDescription typeDescription)
        Resolves the supplied type description's component tag.
        Parameters:
        typeDescription - The type to resolve.
        Returns:
        The character that describes the component tag as an int to ease concatenation.