PHP 클래스 JmesPath\TreeCompiler

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

공개 메소드들

메소드 설명
__call ( $method, $args )
visit ( array $ast, string $fnName, string $expr ) : string

비공개 메소드들

메소드 설명
dispatch ( array $node ) : mixed
indent ( ) Increases the indentation level of code being written
makeVar ( string $prefix ) : string Creates a monotonically incrementing unique variable name by prefix.
outdent ( ) Decreases the indentation level of code being written
visit_and ( array $node )
visit_comparator ( array $node )
visit_condition ( array $node )
visit_current ( array $node )
visit_expref ( array $node )
visit_field ( array $node )
visit_flatten ( array $node )
visit_function ( array $node )
visit_index ( array $node )
visit_literal ( array $node )
visit_multi_select_hash ( array $node )
visit_multi_select_list ( array $node )
visit_not ( array $node )
visit_or ( array $node )
visit_pipe ( array $node )
visit_projection ( array $node )
visit_slice ( array $node )
visit_subexpression ( array $node )
write ( string $str ) Writes the given line of source code. Pass positional arguments to write that match the format of sprintf.

메소드 상세

__call() 공개 메소드

public __call ( $method, $args )

visit() 공개 메소드

public visit ( array $ast, string $fnName, string $expr ) : string
$ast array AST to compile.
$fnName string The name of the function to generate.
$expr string Expression being compiled.
리턴 string