| 1 | package Jmespath::Expression; | ||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 28 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 6 | 28 | my ($class, $expression, $interpreter) = @_; | |
| 7 | 28 | my $self = bless {}, $class; | |
| 8 | 28 | $self->{expression} = $expression; | |
| 9 | 28 | $self->{interpreter} = $interpreter; | |
| 10 | 28 | return $self; | |
| 11 | } | ||
| 12 | |||
| 13 | 112 | ▶ | sub visit { |
|
Subroutine
visit: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 112 | my ($self, $node, $args) = @_; | |
| 15 | 112 | return $self->{interpreter}->visit($node, $args); | |
| 16 | } | ||
| 17 | |||
| 18 | 2 | 1; | |