__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# $Id: Variable.pm,v 1.5 2001/03/16 11:10:08 matt Exp $
package XML::XPathEngine::Variable;
use strict;
# This class does NOT contain 1 instance of a variable
# see the XML::XPathEngine::Parser class for the instances
# This class simply holds the name of the var
sub new {
my $class = shift;
my ($pp, $name) = @_;
bless { name => $name, path_parser => $pp }, $class;
}
sub as_string {
my $self = shift;
'\$' . $self->{name};
}
sub as_xml {
my $self = shift;
return "<Variable>" . $self->{name} . "</Variable>\n";
}
sub get_value {
my $self = shift;
$self->{path_parser}->get_var($self->{name});
}
sub set_value {
my $self = shift;
my ($val) = @_;
$self->{path_parser}->set_var($self->{name}, $val);
}
sub evaluate {
my $self = shift;
my $val = $self->get_value;
return $val;
}
1;
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Boolean.pm | File | 1.31 KB | 0644 |
|
| Expr.pm | File | 19.61 KB | 0644 |
|
| Function.pm | File | 10.8 KB | 0644 |
|
| Literal.pm | File | 2.17 KB | 0644 |
|
| LocationPath.pm | File | 1.1 KB | 0644 |
|
| NodeSet.pm | File | 4.06 KB | 0644 |
|
| Number.pm | File | 1.76 KB | 0644 |
|
| Root.pm | File | 634 B | 0644 |
|
| Step.pm | File | 14.17 KB | 0644 |
|
| Variable.pm | File | 850 B | 0644 |
|