Template::Plugin::Java::Utils - Utility functions for Template::Plugin::Java.
use Template::Plugin::Java::Utils qw/list of subroutines to import/;
Creates a new Template with reasonable options.
Replaces c_c with cC and nosomething=whatever with something=0 in the keys of a hash.
Adds to or sets an option in a hash, supports nested arrays and boolean options. The logic here is one of those things that just works the way it is and seems decipherable, but don't mess with it.
Parses @ARGV into a hash of options and values, leaving everything else that is most likely a list of files on @ARGV.
Maps some ANSI SQL data types to the closest Java variable types. The default case is byte[] for unrecognized sql types.
Remove any dir/../ or /./ or extraneous / from a path, as well as prepending the current directory if necessary.
Find package in $ENV{CLASSPATH}.
Determine the package of the current or passed-in directory.
Determines whether a string is a number or not. Uses the more powerful DBI::looks_like_number heuristic if available.
Casts a java String to another type using the appropriate code.
Transform a java type name to a character string version. In other words, String remains String, but byte[] becomes byteArray.
These are the environment variables used.
Colon separated path to where templates can be found, used by default in the createTemplate subroutine.
Searched in findPackageDir to find a directory relative to it.
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.
None known.
Nothing here.
perl(1), Template(3), Template::Plugin::Java(3), Template::Plugin::JavaSQL(3) Template::Plugin::Java::Constants(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.