Package org.jline.builtins
Enum SyntaxHighlighter.HighlightRule.RuleType
- java.lang.Object
-
- java.lang.Enum<SyntaxHighlighter.HighlightRule.RuleType>
-
- org.jline.builtins.SyntaxHighlighter.HighlightRule.RuleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SyntaxHighlighter.HighlightRule.RuleType>
- Enclosing class:
- SyntaxHighlighter.HighlightRule
public static enum SyntaxHighlighter.HighlightRule.RuleType extends java.lang.Enum<SyntaxHighlighter.HighlightRule.RuleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PARSER_CONTINUE_AS
PARSER_START_WITH
PATTERN
START_END
-
Constructor Summary
Constructors Modifier Constructor Description private
RuleType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SyntaxHighlighter.HighlightRule.RuleType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SyntaxHighlighter.HighlightRule.RuleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PATTERN
public static final SyntaxHighlighter.HighlightRule.RuleType PATTERN
-
START_END
public static final SyntaxHighlighter.HighlightRule.RuleType START_END
-
PARSER_START_WITH
public static final SyntaxHighlighter.HighlightRule.RuleType PARSER_START_WITH
-
PARSER_CONTINUE_AS
public static final SyntaxHighlighter.HighlightRule.RuleType PARSER_CONTINUE_AS
-
-
Method Detail
-
values
public static SyntaxHighlighter.HighlightRule.RuleType[] 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 (SyntaxHighlighter.HighlightRule.RuleType c : SyntaxHighlighter.HighlightRule.RuleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SyntaxHighlighter.HighlightRule.RuleType 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 namejava.lang.NullPointerException
- if the argument is null
-
-