PHP 클래스 JmesPath\TreeInterpreter

파일 보기 프로젝트 열기: mtdowling/jmespath.php 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( callable $fnDispatcher = null )
visit ( array $node, mixed $data ) : mixed Visits each node in a JMESPath AST and returns the evaluated result.

비공개 메소드들

메소드 설명
dispatch ( array $node, $value ) : mixed Recursively traverses an AST using depth-first, pre-order traversal.
relativeCmp ( $left, $right, $cmp ) : boolean

메소드 상세

__construct() 공개 메소드

public __construct ( callable $fnDispatcher = null )
$fnDispatcher callable Function dispatching function that accepts a function name argument and an array of function arguments and returns the result.

visit() 공개 메소드

Visits each node in a JMESPath AST and returns the evaluated result.
public visit ( array $node, mixed $data ) : mixed
$node array JMESPath AST node
$data mixed Data to evaluate
리턴 mixed