Enum TypeOfText

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TypeOfText>

    public enum TypeOfText
    extends java.lang.Enum<TypeOfText>
    Possible types for highlighting code. See sonar-colorizer.css
    Since:
    5.1
    • Enum Constant Detail

      • ANNOTATION

        public static final TypeOfText ANNOTATION
      • CONSTANT

        public static final TypeOfText CONSTANT
      • CPP_DOC

        @Deprecated
        public static final TypeOfText CPP_DOC
        Deprecated.
      • STRUCTURED_COMMENT

        public static final TypeOfText STRUCTURED_COMMENT
        For example Javadoc
      • KEYWORD_LIGHT

        public static final TypeOfText KEYWORD_LIGHT
      • PREPROCESS_DIRECTIVE

        public static final TypeOfText PREPROCESS_DIRECTIVE
    • Method Detail

      • values

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

        public static TypeOfText 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
      • forCssClass

        public static TypeOfText forCssClass​(java.lang.String cssClass)
      • cssClass

        public java.lang.String cssClass()
        For internal use