This type is a Scope with independent lifecycle and its own
data() map.
| Modifier and Type | Method and Description |
|---|---|
| public char | |
| public char | |
| public @NotNull char[] | |
| public @NotNull ParseContext | |
| public @NotNull ParserException | |
| public @NotNull LanguageContext | |
| public boolean | |
| public boolean | |
| public @NotNull SQLDialectCategory | |
| public @NotNull Condition | Returns: The parsed condition.
Deprecated
as a consequence of
Parse a Condition being deprecated.
Condition expression or fail if the current expression is
not a condition.
|
| public @NotNull DataType | Returns: The data type.Parse a |
| public @NotNull SQLDialect | |
| public @NotNull SQLDialect | |
| public @NotNull Field | Returns: The parsed field.
Deprecated
as a consequence of
Parse a Field being deprecated.
Field expression or fail if the current expression is not
a field.
|
| public boolean | Returns: Whether the function name could be parsed.Try parsing a function name. |
| public boolean | Returns: Whether any function name could be parsed.Try parsing any function name. |
| public @NotNull Name | Returns: The parsed identifier.Parse an (unqualified) identifier or fail if the current token is not an identifier. |
| public @Nullable Name | Returns: The identifier if it could be parsed, ornull if the
current token is not an identifier.Try parsing an (unqualified) identifier. |
| public boolean | |
| public boolean | |
| public boolean | Returns: Always returns true.Parse a keyword or fail if the keyword cannot be parsed. |
| public boolean | Returns: Always returns true.Parse any keyword or fail if none of the keywords could be parsed. |
| public boolean | |
| public boolean | Returns: Whether any of the keywords could be parsed.Try parsing any keyword. |
| public <T> @NotNull List | parseList(String separator, Function<? super ParseContext, ? extends T> element)
Convenience method to parse a list of at least 1 elements. |
| public <T> @NotNull List | parseList(Predicate<? super ParseContext> separator, Function<? super ParseContext, ? extends T> element)
Convenience method to parse a list of at least 1 elements. |
| public @NotNull Name | Returns: The parsed name.Parse a name (a qualified identifier) or fail if the current token is not a name. |
| public @Nullable Name | Returns: The name if it could be parsed, ornull if the
current token is not a name.Try parsing a name (a qualified identifier). |
| public <T> T | parseParenthesised(Function<? super ParseContext, ? extends T> content)
Convenience method to parse parenthesised content. |
| public <T> T | parseParenthesised(char open, Function<? super ParseContext, ? extends T> content, char close)
Convenience method to parse parenthesised content. |
| public <T> T | parseParenthesised(String open, Function<? super ParseContext, ? extends T> content, String close)
Convenience method to parse parenthesised content. |
| public @NotNull Long | Returns: The signed integer literal.Parse a signed integer literal or fail if the current token is not a signed integer literal. |
| public @Nullable Long | Returns: The signed integer literal if it could be parsed, ornull if the current token is not an signed integer
literal.Try parsing an signed integer literal. |
| public @NotNull SortField | Returns: The parsed sort field.Parse a |
| public @NotNull String | Returns: The parsed string literal.Parse a string literal or fail if the current token is not a string literal. |
| public @Nullable String | Returns: The string literal if it could be parsed, ornull if
the current token is not a string literal.Try parsing a string literal. |
| public @NotNull Table | Returns: The parsed table.Parse a |
| public @NotNull Long | Returns: The unsigned integer literal.Parse an unsigned integer literal or fail if the current token is not an unsigned integer literal. |
| public @Nullable Long | Returns: The unsigned integer literal if it could be parsed, ornull if the current token is not an unsigned integer
literal.Try parsing an unsigned integer literal. |
| public boolean | |
| public boolean | |
| public boolean | Returns: Whether the next keyword is the expected one.Peek at the next keyword. |
| public boolean | Returns: Whether the next keyword is any of the expected ones.Peek at the next keyword. |
| public int | |
| public boolean |
| character | back to summary |
|---|---|
| public char character() The character at the current | |
| character | back to summary |
|---|---|
| public char character(int pos) The character at position | |
| characters | back to summary |
|---|---|
| public @NotNull char[] characters() Get access to the underlying SQL string. | |
| characters | back to summary |
|---|---|
| public @NotNull ParseContext characters(char[] newCharacters) Update the underlying SQL string.
This replaces the current SQL string being parsed by a new one. Callers
must ensure this
| |
| exception | back to summary |
|---|---|
| public @NotNull ParserException exception(String message) An exception that can be thrown from the current position.
| |
| languageContext | back to summary |
|---|---|
| public @NotNull LanguageContext languageContext() The current language context.
| |
| parse | back to summary |
|---|---|
| public boolean parse(char c) throws ParserException Parse a single character or fail if it cannot be parsed.
| |
| parse | back to summary |
|---|---|
| public boolean parse(String string) throws ParserException Parse a string or fail if it cannot be parsed.
| |
| parseCategory | back to summary |
|---|---|
| public @NotNull SQLDialectCategory parseCategory() Convenient access to
| |
| parseCondition | back to summary |
|---|---|
| public @NotNull Condition parseCondition() throws ParserException
Deprecated as a consequence of Parse a
| |
| parseDataType | back to summary |
|---|---|
| public @NotNull DataType Parse a
| |
| parseDialect | back to summary |
|---|---|
| public @NotNull SQLDialect parseDialect() Convenient access to
| |
| parseFamily | back to summary |
|---|---|
| public @NotNull SQLDialect parseFamily() Convenient access to
| |
| parseField | back to summary |
|---|---|
| public @NotNull Field Deprecated as a consequence of Parse a
| |
| parseFunctionNameIf | back to summary |
|---|---|
| public boolean parseFunctionNameIf(String name) Try parsing a function name.
| |
| parseFunctionNameIf | back to summary |
|---|---|
| public boolean parseFunctionNameIf(String... names) Try parsing any function name.
| |
| parseIdentifier | back to summary |
|---|---|
| public @NotNull Name parseIdentifier() throws ParserException Parse an (unqualified) identifier or fail if the current token is not an identifier.
| |
| parseIdentifierIf | back to summary |
|---|---|
| public @Nullable Name parseIdentifierIf() Try parsing an (unqualified) identifier. | |
| parseIf | back to summary |
|---|---|
| public boolean parseIf(char c) Try parsing a single character.
| |
| parseIf | back to summary |
|---|---|
| public boolean parseIf(String string) Try parsing a string.
| |
| parseKeyword | back to summary |
|---|---|
| public boolean parseKeyword(String keyword) throws ParserException Parse a keyword or fail if the keyword cannot be parsed.
The argument keyword should be in UPPER CASE and is allowed to contain
spaces. Spaces separating keyword parts are interpreted as any arbitrary
amount of whitespace. For example, when parsing
| |
| parseKeyword | back to summary |
|---|---|
| public boolean parseKeyword(String... keywords) throws ParserException Parse any keyword or fail if none of the keywords could be parsed.
| |
| parseKeywordIf | back to summary |
|---|---|
| public boolean parseKeywordIf(String keyword) Try parsing a keyword.
The argument keyword should be in UPPER CASE and is allowed to contain
spaces. Spaces separating keyword parts are interpreted as any arbitrary
amount of whitespace. For example, when parsing
| |
| parseKeywordIf | back to summary |
|---|---|
| public boolean parseKeywordIf(String... keywords) Try parsing any keyword.
| |
| parseList | back to summary |
|---|---|
| public <T> @NotNull List Convenience method to parse a list of at least 1 elements.
| |
| parseList | back to summary |
|---|---|
| public <T> @NotNull List Convenience method to parse a list of at least 1 elements.
| |
| parseName | back to summary |
|---|---|
| public @NotNull Name parseName() throws ParserException Parse a name (a qualified identifier) or fail if the current token is not a name.
| |
| parseNameIf | back to summary |
|---|---|
| public @Nullable Name parseNameIf() Try parsing a name (a qualified identifier). | |
| parseParenthesised | back to summary |
|---|---|
| public <T> T parseParenthesised(Function<? super ParseContext, ? extends T> content) Convenience method to parse parenthesised content. | |
| parseParenthesised | back to summary |
|---|---|
| public <T> T parseParenthesised(char open, Function<? super ParseContext, ? extends T> content, char close) Convenience method to parse parenthesised content. | |
| parseParenthesised | back to summary |
|---|---|
| public <T> T parseParenthesised(String open, Function<? super ParseContext, ? extends T> content, String close) Convenience method to parse parenthesised content. | |
| parseSignedIntegerLiteral | back to summary |
|---|---|
| public @NotNull Long parseSignedIntegerLiteral() throws ParserException Parse a signed integer literal or fail if the current token is not a signed integer literal.
| |
| parseSignedIntegerLiteralIf | back to summary |
|---|---|
| public @Nullable Long parseSignedIntegerLiteralIf() Try parsing an signed integer literal. | |
| parseSortField | back to summary |
|---|---|
| public @NotNull SortField Parse a
| |
| parseStringLiteral | back to summary |
|---|---|
| public @NotNull String parseStringLiteral() throws ParserException Parse a string literal or fail if the current token is not a string literal.
| |
| parseStringLiteralIf | back to summary |
|---|---|
| public @Nullable String parseStringLiteralIf() Try parsing a string literal. | |
| parseTable | back to summary |
|---|---|
| public @NotNull Table Parse a
| |
| parseUnsignedIntegerLiteral | back to summary |
|---|---|
| public @NotNull Long parseUnsignedIntegerLiteral() throws ParserException Parse an unsigned integer literal or fail if the current token is not an unsigned integer literal.
| |
| parseUnsignedIntegerLiteralIf | back to summary |
|---|---|
| public @Nullable Long parseUnsignedIntegerLiteralIf() Try parsing an unsigned integer literal. | |
| peek | back to summary |
|---|---|
| public boolean peek(char c) Peek at the next character.
| |
| peek | back to summary |
|---|---|
| public boolean peek(String string) Peek at the next characters.
| |
| peekKeyword | back to summary |
|---|---|
| public boolean peekKeyword(String keyword) Peek at the next keyword.
| |
| peekKeyword | back to summary |
|---|---|
| public boolean peekKeyword(String... keywords) Peek at the next keyword.
| |
| position | back to summary |
|---|---|
| public int position() The current position. | |
| position | back to summary |
|---|---|
| public boolean position(int newPosition) Set the current position to a new one.
| |