Enum PrimitiveType.Primitive

    • Field Detail

      • nameOfBoxedType

        final java.lang.String nameOfBoxedType
      • descriptor

        final java.lang.String descriptor
      • codeRepresentation

        private java.lang.String codeRepresentation
    • Constructor Detail

      • Primitive

        private Primitive​(java.lang.String nameOfBoxedType,
                          java.lang.String descriptor)
    • Method Detail

      • values

        public static PrimitiveType.Primitive[] 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 (PrimitiveType.Primitive c : PrimitiveType.Primitive.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PrimitiveType.Primitive 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
      • byBoxedTypeName

        public static java.util.Optional<PrimitiveType.Primitive> byBoxedTypeName​(java.lang.String simpleName)
      • asString

        public java.lang.String asString()
      • toDescriptor

        public java.lang.String toDescriptor()