Enum Scanner.Token
- java.lang.Object
-
- java.lang.Enum<Scanner.Token>
-
- co.elastic.apm.agent.db.signature.Scanner.Token
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Scanner.Token>
- Enclosing class:
- Scanner
public static enum Scanner.Token extends java.lang.Enum<Scanner.Token>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Scanner.Token[]getKeywordsByLength(int length)static Scanner.TokenvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Scanner.Token[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OTHER
public static final Scanner.Token OTHER
-
EOF
public static final Scanner.Token EOF
-
COMMENT
public static final Scanner.Token COMMENT
-
IDENT
public static final Scanner.Token IDENT
-
NUMBER
public static final Scanner.Token NUMBER
-
STRING
public static final Scanner.Token STRING
-
PERIOD
public static final Scanner.Token PERIOD
-
LPAREN
public static final Scanner.Token LPAREN
-
RPAREN
public static final Scanner.Token RPAREN
-
AS
public static final Scanner.Token AS
-
CALL
public static final Scanner.Token CALL
-
DELETE
public static final Scanner.Token DELETE
-
FROM
public static final Scanner.Token FROM
-
INSERT
public static final Scanner.Token INSERT
-
INTO
public static final Scanner.Token INTO
-
OR
public static final Scanner.Token OR
-
REPLACE
public static final Scanner.Token REPLACE
-
SELECT
public static final Scanner.Token SELECT
-
SET
public static final Scanner.Token SET
-
TABLE
public static final Scanner.Token TABLE
-
TRUNCATE
public static final Scanner.Token TRUNCATE
-
UPDATE
public static final Scanner.Token UPDATE
-
MERGE
public static final Scanner.Token MERGE
-
USING
public static final Scanner.Token USING
-
-
Method Detail
-
values
public static Scanner.Token[] 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 (Scanner.Token c : Scanner.Token.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Scanner.Token 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
-
getKeywordsByLength
public static Scanner.Token[] getKeywordsByLength(int length)
-
-