Enum AnnotationValue.Sort

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ANNOTATION
      A Annotation-typed property.
      ARRAY
      An array-typed property.
      BOOLEAN
      A boolean-typed property.
      BYTE
      A byte-typed property.
      CHARACTER
      A char-typed property.
      DOUBLE
      A double-typed property.
      ENUMERATION
      A Enum-typed property.
      FLOAT
      A float-typed property.
      INTEGER
      An int-typed property.
      LONG
      A long-typed property.
      NONE
      A property without a well-defined value.
      SHORT
      A short-typed property.
      STRING
      A String-typed property.
      TYPE
      A Class-typed property.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int tag
      The property's tag.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Sort​(int tag)
      Creates a new sort.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int getTag()
      Returns the property's tag.
      boolean isDefined()
      Returns true if the property is defined.
      static AnnotationValue.Sort of​(TypeDefinition typeDefinition)
      Resolves a sort for the provided type definition.
      static AnnotationValue.Sort valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AnnotationValue.Sort[] 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

      • tag

        private final int tag
        The property's tag.
    • Constructor Detail

      • Sort

        private Sort​(int tag)
        Creates a new sort.
        Parameters:
        tag - The property's tag.
    • Method Detail

      • values

        public static AnnotationValue.Sort[] 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.Sort c : AnnotationValue.Sort.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.Sort 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
      • of

        public static AnnotationValue.Sort of​(TypeDefinition typeDefinition)
        Resolves a sort for the provided type definition.
        Parameters:
        typeDefinition - The type definition to resolve.
        Returns:
        The resolved sort for the provided type definition.
      • getTag

        protected int getTag()
        Returns the property's tag.
        Returns:
        The property's tag.
      • isDefined

        public boolean isDefined()
        Returns true if the property is defined.
        Returns:
        true if the property is defined.