PHP Class JmesPath\TreeCompiler

Datei anzeigen Open project: mtdowling/jmespath.php Class Usage Examples

Public Methods

Method Description
__call ( $method, $args )
visit ( array $ast, string $fnName, string $expr ) : string

Private Methods

Method Description
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.

Method Details

__call() public method

public __call ( $method, $args )

visit() public method

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.
return string