REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 1.47 KB
Close
/home/godevadmin/www/admin/vendor/aws/JmesPath/AstRuntime.php
Text
Base64
<?php namespace JmesPath; /** * Uses an external tree visitor to interpret an AST. */ class AstRuntime { private $parser; private $interpreter; private $cache = []; private $cachedCount = 0; public function __construct( Parser $parser = null, callable $fnDispatcher = null ) { $fnDispatcher = $fnDispatcher ?: FnDispatcher::getInstance(); $this->interpreter = new TreeInterpreter($fnDispatcher); $this->parser = $parser ?: new Parser(); } /** * Returns data from the provided input that matches a given JMESPath * expression. * * @param string $expression JMESPath expression to evaluate * @param mixed $data Data to search. This data should be data that * is similar to data returned from json_decode * using associative arrays rather than objects. * * @return mixed Returns the matching data or null */ public function __invoke($expression, $data) { if (!isset($this->cache[$expression])) { // Clear the AST cache when it hits 1024 entries if (++$this->cachedCount > 1024) { $this->cache = []; $this->cachedCount = 0; } $this->cache[$expression] = $this->parser->parse($expression); } return $this->interpreter->visit($this->cache[$expression], $data); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 12
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AstRuntime.php
1.47 KB
lrwxrwxr-x
2024-06-18 20:12:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CompilerRuntime.php
2.64 KB
lrwxrwxr-x
2024-06-18 20:12:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DebugRuntime.php
3.22 KB
lrwxrwxr-x
2024-06-18 20:12:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Env.php
2.51 KB
lrwxrwxr-x
2024-06-18 20:12:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
FnDispatcher.php
12.58 KB
lrwxrwxr-x
2024-06-18 20:12:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
JmesPath.php
390 B
lrwxrwxr-x
2024-06-18 20:12:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Lexer.php
15.34 KB
lrwxrwxr-x
2024-06-18 20:12:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Parser.php
14.40 KB
lrwxrwxr-x
2024-06-18 20:12:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SyntaxErrorException.php
1.14 KB
lrwxrwxr-x
2024-06-18 20:12:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TreeCompiler.php
13.18 KB
lrwxrwxr-x
2024-06-18 20:12:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TreeInterpreter.php
7.88 KB
lrwxrwxr-x
2024-06-18 20:12:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Utils.php
7.52 KB
lrwxrwxr-x
2024-06-18 20:12:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).