Template::Plugin::Java::Constants - Constants for the Java Template plugin modules.
use Template::Plugin::Java::Constants qw/:regex/; use Template::Plugin::Java::Constants qw/:boolean/; use Template::Plugin::Java::Constants qw/:all/;
The "regex" tag exports qr// compiled regular expressions SCALAR, PRIMITIVE, STRING and ARRAY, these are for matching Java types. All of these match a whole line, with no extra whitespace, and return the matched java type as $1. They may be used as:
$string =~ /@{[SCALAR]}/; # Ugly but effective and relatively fast.
Any primitive or encapsulated primitive: int, or Integer, or String, etc.
Only primitive types like int, float, double, byte, etc.
An incarnation of java.lang.String.
A java.util.Vector.
The boolean tag just exports the constants TRUE as 1 and FALSE as 0.
Exports all of the proceeding.
Rafael Kitover (caelum@debian.org)
This program is Copyright (c) 2000 by Rafael Kitover. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl(1), Template(3), Template::Plugin::Java::Utils(3), Template::Plugin::Java::SQL(3)
To install Template::Plugin::Java, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::Java
CPAN shell
perl -MCPAN -e shell install Template::Plugin::Java
For more information on module installation, please visit the detailed CPAN module installation guide.