Package org.postgresql.core
Enum Parser.SqlParseState
- java.lang.Object
-
- java.lang.Enum<Parser.SqlParseState>
-
- org.postgresql.core.Parser.SqlParseState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Parser.SqlParseState>
- Enclosing class:
- Parser
private static enum Parser.SqlParseState extends java.lang.Enum<Parser.SqlParseState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ESC_DATE
ESC_ESCAPECHAR
ESC_FUNCTION
ESC_OUTERJOIN
ESC_TIME
ESC_TIMESTAMP
IN_SQLCODE
-
Field Summary
Fields Modifier and Type Field Description private char[]
allowedValues
private char[]
escapeKeyword
private java.lang.String
replacementKeyword
private static Parser.SqlParseState[]
VALUES
-
Constructor Summary
Constructors Modifier Constructor Description private
SqlParseState()
private
SqlParseState(java.lang.String escapeKeyword, char[] allowedValues, java.lang.String replacementKeyword)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
getMatchedPosition(char[] sql, int pos)
private boolean
startMatches(char[] sql, int pos)
static Parser.SqlParseState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Parser.SqlParseState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IN_SQLCODE
public static final Parser.SqlParseState IN_SQLCODE
-
ESC_DATE
public static final Parser.SqlParseState ESC_DATE
-
ESC_TIME
public static final Parser.SqlParseState ESC_TIME
-
ESC_TIMESTAMP
public static final Parser.SqlParseState ESC_TIMESTAMP
-
ESC_FUNCTION
public static final Parser.SqlParseState ESC_FUNCTION
-
ESC_OUTERJOIN
public static final Parser.SqlParseState ESC_OUTERJOIN
-
ESC_ESCAPECHAR
public static final Parser.SqlParseState ESC_ESCAPECHAR
-
-
Field Detail
-
VALUES
private static final Parser.SqlParseState[] VALUES
-
escapeKeyword
private final char[] escapeKeyword
-
allowedValues
private final char[] allowedValues
-
replacementKeyword
private final java.lang.String replacementKeyword
-
-
Method Detail
-
values
public static Parser.SqlParseState[] 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 (Parser.SqlParseState c : Parser.SqlParseState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Parser.SqlParseState 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
-
startMatches
private boolean startMatches(char[] sql, int pos)
-
getMatchedPosition
private int getMatchedPosition(char[] sql, int pos)
-
-