| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | ExprParser.
An expression parser. |
| pack-priv static class | ExprParser.
Token. |
| private static enum | ExprParser.
Token types used by the lexer. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | allowRelationalColumns
Are relational columns identifiers allowed? |
| private static HashMap | |
| pack-priv Map | placeholderNameToPosition
Mapping of names to positions for named placeholders. |
| pack-priv int | positionalPlaceholderCount
Number of positional placeholders. |
| pack-priv static Map | reservedWords
Mapping of reserved words to token types. |
| pack-priv String | string
String being parsed. |
| pack-priv int | tokenPos
Parser's position in token stream. |
| pack-priv List | tokens
Token stream produced by lexer. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ExprParser(String
expression string to parse s, boolean are relational columns identifiers allowed? allowRelationalColumns)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv MysqlxExpr. | |
| pack-priv MysqlxExpr. | |
| pack-priv MysqlxExpr. | |
| pack-priv void | assertTokenAt(int
The current position in the string pos, ExprParser.Assert that the token at pos is of type type. |
| pack-priv MysqlxExpr. | |
| pack-priv MysqlxExpr. | |
| pack-priv MysqlxExpr. | Returns: Exproperator name name, MysqlxExpr.operator parameter paramBuild a unary operator expression. |
| pack-priv MysqlxExpr. | Returns: ExprParse a column identifier (which may optionally include a JSON document path). |
| pack-priv MysqlxExpr. | |
| pack-priv String | |
| pack-priv boolean | Returns: true if equalsDoes the current token have type `t'? |
| pack-priv MysqlxExpr. | |
| pack-priv MysqlxExpr. | |
| public MysqlxExpr. | |
| public List | Returns: list ofDocumentPathItem objectsParse a JSON-style document path, like WL#7909, but prefix by @. |
| pack-priv MysqlxExpr. | |
| pack-priv MysqlxExpr. | Returns: an Expr representing the function call.Parse a function call of the form: IDENTIFIER PAREN_EXPR_LIST. |
| public Map | Returns: a mapping of parameter names to positions.Get a mapping of parameter names to positions. |
| public int | Returns: the number of positional placeholders in the expressionReturn the number of positional placeholders in the expression. |
| pack-priv MysqlxExpr. | |
| pack-priv MysqlxExpr. | |
| pack-priv void | |
| private int | Returns: the next position in the string after the number.The current position in the string i)Helper function to match integer or floating point numbers. |
| pack-priv MysqlxExpr. | |
| pack-priv boolean | Returns: true if equalsThe current position in the string i, char character to compare with c)Does the next character equal the given character? |
| pack-priv boolean | Returns: true if equalsDoes the next token have type `t'? |
| pack-priv MysqlxExpr. | |
| pack-priv List | |
| public MysqlxExpr. | |
| private < the type of element to be parsed T> List | Returns: a list of elements parsedthe single element parser elementParser)Utility method to wrap a parser of a list of elements separated by comma. |
| public List | Returns: list ofProjection objectsParse a document projection which is similar to SELECT but with document paths as the target alias. |
| public List | |
| pack-priv MysqlxExpr. | Returns: an expression tree of the binary operator or a single operandThe token types that denote this operator. types,The inner parser that should be called to parse operands. innerParserParse a left-associated binary operator. |
| public List | Returns: list ofOrder objectsParse an ORDER BY specification which is a comma-separated list of expressions, each may be optionally suffixed by ASC/DESC. |
| public MysqlxCrud. | |
| public List | Returns: list ofProjection objectsParse a SELECT projection which is a comma-separated list of expressions, each optionally suffixed with a target alias. |
| public MysqlxExpr. | Returns: ColumnIdentifierParse an UPDATE field which can include can document paths. |
| pack-priv boolean | Returns: true if equalsThe current position in the string pos, ExprParser.Does the token at position `pos' have type `t'? |
| pack-priv MysqlxExpr. | |
| pack-priv MysqlxExpr. |