NAME

Java::Javap::Generator - Factory for Perl 6 generators

SYNOPSIS

use Java::Javap::Generator;

my $gen = Java::Javap::Generator->get_generator( 'NAME', @args );

my $output = $gen->generate( @more_args );

DESCRIPTION

This is a factory class which returns a Java -> Perl 6 generator. All generators must live in the Java::Javap::Generator:: namespace. They must supply a new method. They should supply a generate method.

To use a particular generator, see its POD.

KNOWN GENERATORS

Java::Javap::Generator::TT - uses TT templates

METHODS

This moduule provides only one method which returns an instance of the supplied generating class.

get_generator

Call get_generator with the name of the generator you want to use. Pass any additional arguments expected by the new method of your genertor's class. Example:

my $generator = Java::Javap::Generator->get_generator(
        'TT', \%tt_args
);

EXPORT

None. Call get_generator as a class method.

SEE ALSO

All the modules in the Java::Javap::Generator:: namespace.

AUTHOR

Phil Crow, <crow.phil@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2007, Phil Crow

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.