Properties

$lexer

$lexer : \JmesPath\Lexer

Type

Lexer

$tokens

$tokens

$token

$token

$tpos

$tpos

$expression

$expression

$nullToken

$nullToken

$currentNode

$currentNode

$bp

$bp

$afterDot

$afterDot : array

Type

array — Acceptable tokens after a dot token

Methods

__construct()

__construct(\JmesPath\Lexer|null  $lexer = null) : mixed

Parameters

\JmesPath\Lexer|null $lexer

Lexer used to tokenize expressions

Returns

mixed —

parse()

parse(string  $expression) : array

Parses a JMESPath expression into an AST

Parameters

string $expression

JMESPath expression to compile

Throws

\JmesPath\SyntaxErrorException

Returns

array —

Returns an array based AST

expr()

expr(int  $rbp) : array

Parses an expression while rbp < lbp.

Parameters

int $rbp

Right bound precedence

Returns

array —

nud_identifier()

nud_identifier() : mixed

Returns

mixed —

nud_quoted_identifier()

nud_quoted_identifier() : mixed

Returns

mixed —

nud_current()

nud_current() : mixed

Returns

mixed —

nud_literal()

nud_literal() : mixed

Returns

mixed —

nud_expref()

nud_expref() : mixed

Returns

mixed —

nud_not()

nud_not() : mixed

Returns

mixed —

nud_lparen()

nud_lparen() : mixed

Returns

mixed —

nud_lbrace()

nud_lbrace() : mixed

Returns

mixed —

nud_flatten()

nud_flatten() : mixed

Returns

mixed —

nud_filter()

nud_filter() : mixed

Returns

mixed —

nud_star()

nud_star() : mixed

Returns

mixed —

nud_lbracket()

nud_lbracket() : mixed

Returns

mixed —

led_lbracket()

led_lbracket(array  $left) : mixed

Parameters

array $left

Returns

mixed —

led_flatten()

led_flatten(array  $left) : mixed

Parameters

array $left

Returns

mixed —

led_dot()

led_dot(array  $left) : mixed

Parameters

array $left

Returns

mixed —

led_or()

led_or(array  $left) : mixed

Parameters

array $left

Returns

mixed —

led_and()

led_and(array  $left) : mixed

Parameters

array $left

Returns

mixed —

led_pipe()

led_pipe(array  $left) : mixed

Parameters

array $left

Returns

mixed —

led_lparen()

led_lparen(array  $left) : mixed

Parameters

array $left

Returns

mixed —

led_filter()

led_filter(array  $left) : mixed

Parameters

array $left

Returns

mixed —

led_comparator()

led_comparator(array  $left) : mixed

Parameters

array $left

Returns

mixed —

parseProjection()

parseProjection(mixed  $bp) : mixed

Parameters

mixed $bp

Returns

mixed —

parseDot()

parseDot(mixed  $bp) : mixed

Parameters

mixed $bp

Returns

mixed —

parseKeyValuePair()

parseKeyValuePair() : mixed

Returns

mixed —

parseWildcardObject()

parseWildcardObject(array  $left = null) : mixed

Parameters

array $left

Returns

mixed —

parseWildcardArray()

parseWildcardArray(array  $left = null) : mixed

Parameters

array $left

Returns

mixed —

parseArrayIndexExpression()

parseArrayIndexExpression() : mixed

Parses an array index expression (e.g., [0], [1:2:3]

Returns

mixed —

parseMultiSelectList()

parseMultiSelectList() : mixed

Returns

mixed —

syntax()

syntax(mixed  $msg) : mixed

Parameters

mixed $msg

Returns

mixed —

lookahead()

lookahead() : mixed

Returns

mixed —

next()

next(array  $match = null) : mixed

Parameters

array $match

Returns

mixed —

assertNotToken()

assertNotToken(mixed  $type) : mixed

Parameters

mixed $type

Returns

mixed —