Template::Plugin::Java::UtilsTemplate::Plugin::Java::Utils is a Perl module with utility functions for Template::Plugin::Java. | |
Download |
Template::Plugin::Java::Utils Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Rafael Kitover
- Publisher web site:
- http://search.cpan.org/~rkitover/
Template::Plugin::Java::Utils Tags
Template::Plugin::Java::Utils Description
Template::Plugin::Java::Utils is a Perl module with utility functions for Template::Plugin::Java. Template::Plugin::Java::Utils is a Perl module with utility functions for Template::Plugin::Java.SYNOPSIS use Template::Plugin::Java::Utils qw/list of subroutines to import/;SUBROUTINEScreateTemplateCreates a new Template with reasonable options.parseOptionsReplaces c_c with cC and nosomething=whatever with something=0 in the keys of a hash.setOptionAdds 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.parseCmdLineParses @ARGV into a hash of options and values, leaving everything else that is most likely a list of files on @ARGV.sqlType2JavaType( type_name )Maps some ANSI SQL data types to the closest Java variable types. The default case is byte[] for unrecognized sql types.simplifyPath( path )Remove any dir/../ or /./ or extraneous / from a path, as well as prepending the current directory if necessary.findPackageDir( directory )Find package in $ENV{CLASSPATH}.determinePackage()Determine the package of the current or passed-in directory.isNum( string )Determines whether a string is a number or not. Uses the more powerful DBI::looks_like_number heuristic if available.castJavaString( variable_name, target_type )Casts a java String to another type using the appropriate code.javaTypeName( javaType )Transform a java type name to a character string version. In other words, String remains String, but byte[] becomes byteArray. Requirements: · Perl
Template::Plugin::Java::Utils Related Software