Enum JsTokenType
- java.lang.Object
-
- java.lang.Enum<JsTokenType>
-
- io.github.factoryfx.javafx.javascript.editor.attribute.visualisation.JsTokenType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<JsTokenType>
public enum JsTokenType extends java.lang.Enum<JsTokenType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<JsTokenType>byTokenType(com.google.javascript.jscomp.parsing.parser.TokenType tokenType)static java.util.Optional<JsTokenType>getByNode(com.google.javascript.rhino.Node node)static JsTokenTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JsTokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEYWORD
public static final JsTokenType KEYWORD
-
PUNCTUATION
public static final JsTokenType PUNCTUATION
-
NAME
public static final JsTokenType NAME
-
STRING
public static final JsTokenType STRING
-
NUMBER
public static final JsTokenType NUMBER
-
REGEX
public static final JsTokenType REGEX
-
ERROR
public static final JsTokenType ERROR
-
COMMENT
public static final JsTokenType COMMENT
-
-
Method Detail
-
values
public static JsTokenType[] 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 (JsTokenType c : JsTokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsTokenType 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
-
getByNode
public static java.util.Optional<JsTokenType> getByNode(com.google.javascript.rhino.Node node)
-
byTokenType
public static java.util.Optional<JsTokenType> byTokenType(com.google.javascript.jscomp.parsing.parser.TokenType tokenType)
-
-