| 1 | |||||||||||||||||||||
| 2 | package VoiceXML::Client::Engine::Component::Interpreter::RunTime; | ||||||||||||||||||||
| 3 | |||||||||||||||||||||
| 4 | 3 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | =head1 COPYRIGHT AND LICENSE | ||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | Copyright (C) 2007,2008 by Pat Deegan. | ||||||||||||||||||||
| 12 | All rights reserved | ||||||||||||||||||||
| 13 | http://voicexml.psychogenic.com | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | This library is released under the terms of the GNU GPL version 3, making it available only for | ||||||||||||||||||||
| 16 | free programs ("free" here being used in the sense of the GPL, see http://www.gnu.org for more details). | ||||||||||||||||||||
| 17 | Anyone wishing to use this library within a proprietary or otherwise non-GPLed program MUST contact psychogenic.com to | ||||||||||||||||||||
| 18 | acquire a distinct license for their application. This approach encourages the use of free software | ||||||||||||||||||||
| 19 | while allowing for proprietary solutions that support further development. | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | This file is part of VoiceXML::Client. | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | VoiceXML::Client is free software: you can redistribute it and/or modify | ||||||||||||||||||||
| 27 | it under the terms of the GNU General Public License as published by | ||||||||||||||||||||
| 28 | the Free Software Foundation, either version 3 of the License, or | ||||||||||||||||||||
| 29 | (at your option) any later version. | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | VoiceXML::Client is distributed in the hope that it will be useful, | ||||||||||||||||||||
| 32 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||||||||||||||||
| 33 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||||||||||||||||||
| 34 | GNU General Public License for more details. | ||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | You should have received a copy of the GNU General Public License | ||||||||||||||||||||
| 37 | along with VoiceXML::Client. If not, see <http://www.gnu.org/licenses/>. | ||||||||||||||||||||
| 38 | |||||||||||||||||||||
| 39 | |||||||||||||||||||||
| 40 | =cut | ||||||||||||||||||||
| 41 | |||||||||||||||||||||
| 42 | =head2 new | ||||||||||||||||||||
| 43 | |||||||||||||||||||||
| 44 | Creates a new instance | ||||||||||||||||||||
| 45 | |||||||||||||||||||||
| 46 | =cut | ||||||||||||||||||||
| 47 | |||||||||||||||||||||
| 48 | 3 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||
| 49 | 3 | my $class = shift; | |||||||||||||||||||
| 50 | 3 | my $params = shift; | |||||||||||||||||||
| 51 | |||||||||||||||||||||
| 52 | 3 | my $self = {}; | |||||||||||||||||||
| 53 | |||||||||||||||||||||
| 54 | 3 | ▶ | bless $self, 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
| |||||||||||||||||||||
| 55 | |||||||||||||||||||||
| 56 | 3 | $self->init($params); | |||||||||||||||||||
| 57 | 3 | return $self; | |||||||||||||||||||
| 58 | } | ||||||||||||||||||||
| 59 | |||||||||||||||||||||
| 60 | 3 | ▶ | sub init { | ||||||||||||||||||
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 61 | 3 | my $self = shift; | |||||||||||||||||||
| 62 | 3 | my $params = shift; | |||||||||||||||||||
| 63 | |||||||||||||||||||||
| 64 | 3 | return 1; | |||||||||||||||||||
| 65 | } | ||||||||||||||||||||
| 66 | |||||||||||||||||||||
| 67 | |||||||||||||||||||||
| 68 | |||||||||||||||||||||
| 69 | 0 | ▶ | sub create_context { | ||||||||||||||||||
|
Subroutine
create_context: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 70 | 0 | my $self = shift; | |||||||||||||||||||
| 71 | 0 | my $stacksize = shift; | |||||||||||||||||||
| 72 | |||||||||||||||||||||
| 73 | 0 | die "override in subclass"; | |||||||||||||||||||
| 74 | } | ||||||||||||||||||||
| 75 | |||||||||||||||||||||
| 76 | |||||||||||||||||||||
| 77 | 3 | 1; | |||||||||||||||||||