| 1 | |||||||||||||||||||||
| 2 | package SQL::Admin::Driver::DB2::Parser; | ||||||||||||||||||||
| 3 | 2 | ▶ | use base qw( SQL::Admin::Driver::Base::Parser ); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 2 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | 2 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 2 | our $VERSION = v0.5.0; | |||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | ###################################################################### | ||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 2 | ▶ | use SQL::Admin::Utils qw( refhash refarray ); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | ###################################################################### | ||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | 2 | my $grammar = require SQL::Admin::Driver::DB2::Grammar; | |||||||||||||||||||
| 17 | 2 | my $cached; | |||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | ###################################################################### | ||||||||||||||||||||
| 20 | ###################################################################### | ||||||||||||||||||||
| 21 | 1 | ▶ | sub new { # ; | ||||||||||||||||||
|
Subroutine
new: called CC=3 SCAR=13.3
Pod
undocumented
| |||||||||||||||||||||
| 22 | 1 | my $class = shift; | |||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 1 | ▶ | $cached ||= $class->SUPER::new (@_); | ||||||||||||||||||
|
Condition33%1/3
$cached ||= $class->SUPER::new(@_)
MC/DC0%0/2
$cached ||= $class->SUPER::new(@_)
$cached
$class->SUPER::new(@_)
Truth table33%1/3
A ||= B
A= $cachedB= $class->SUPER::new(@_)
| |||||||||||||||||||||
| 25 | 1 | ▶ | bless { @_, parser => $cached->{parser} }, ref $class || $class; | ||||||||||||||||||
|
Condition33%1/3
ref $class || $class
MC/DC0%0/2
ref $class || $class
ref $class
$class
Truth table33%1/3
A || B
A= ref $classB= $class
| |||||||||||||||||||||
| 26 | } | ||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | ###################################################################### | ||||||||||||||||||||
| 30 | ###################################################################### | ||||||||||||||||||||
| 31 | 1 | ▶ | sub grammar { # ; | ||||||||||||||||||
|
Subroutine
grammar: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 32 | 1 | $grammar; | |||||||||||||||||||
| 33 | } | ||||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | ###################################################################### | ||||||||||||||||||||
| 37 | ###################################################################### | ||||||||||||||||||||
| 38 | |||||||||||||||||||||
| 39 | package SQL::Admin::Driver::DB2::Parser; | ||||||||||||||||||||
| 40 | |||||||||||||||||||||
| 41 | 2 | 1; | |||||||||||||||||||