Tim Bunce > Java-2Perl6API-0.11 > Java::Javap

Download:
Java-2Perl6API-0.11.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.06   Source  

NAME ^

Java::Javap - Java to Perl 6 API translator

SYNOPSIS ^

    java2perl6api java.somepackage.Module

DESCRIPTION ^

See java2perl6api for instructions and advice on use of this module.

This particular module is only a place holder for the version number of this project (see below).

METHODS ^

get_included_types

Call this as a class method.

Parameters: an abstract syntax tree you got from calling comp_unit an a Java::Javap::Grammar object.

Returns: an array reference of the types in arguments to methods, or return values (thrown types are not reported).

javap

Invokes the javap process and return the output. Throws an exception if something goes wrong, like javap is not found.

Parameters

\@classes

List of classes to be decompiled. It can also be supplied as a string, if a single class should be decompiled.

\@options

Options to be passed to the javap process.

Example

    my @classes = ('java.lang.String');
    my @options = ();
    my $output = Java::Javap->javap(\@classes, \@options);

        # or ...

    my $output = Java::Javap->javap('java.lang.String');

SEE ALSO ^

java2perl6api
Java::Javap::Generator
Java::Javap::Generator::Perl6
javap.grammar

AUTHORS ^

Philip Crow, <crow.phil@gmail.com> Cosimo Streppone, <cosimo@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2007 by Philip 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.

syntax highlighting: