| 1 | package Jmespath::Visitor; | ||
| 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 | #no strict 'refs'; | ||
| 5 | |||
| 6 | 760 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 7 | 760 | my ($class) = @_; | |
| 8 | 760 | my $self = bless {}, $class; | |
| 9 | 760 | $self->{_method_cache} = {}; | |
| 10 | 760 | return $self; | |
| 11 | } | ||
| 12 | |||
| 13 | 0 | ▶ | sub visit { |
|
Subroutine
visit: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 14 | 0 | my ($self, $node, $args) = @_; | |
| 15 | 0 | my $node_type = $node->{type}; | |
| 16 | 0 | my $method = 'visit_' . $node->{type}; | |
| 17 | 0 | return &$method; | |
| 18 | } | ||
| 19 | |||
| 20 | 0 | ▶ | sub default_visit { |
|
Subroutine
default_visit: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 21 | 0 | my ($self, $node, @args) = @_; | |
| 22 | 0 | Jmespath::NotImplementedException->new($node->{type})->throw; | |
| 23 | 0 | return; | |
| 24 | } | ||
| 25 | |||
| 26 | 2 | 1; | |