Convert java syntax to actionscript
I'm porting an existing java library to actionscript and since they are both realy similar, 95% of the work is simply flipping variable and function definition around.

    public int foo(int bar) {}
    //converts to
    public function foo(bar:int):void {}

Boring stuff.

Is there a tool to automate the transition between java syntax and actionscript? I'm not looking to compile java to swf, just transform the source code to be (often nonworking) actionscript.
Convert java syntax to actionscript
===

I'm porting an existing java library to actionscript and since they are both realy similar, 95% of the work is simply flipping variable and function definition around.

    public int foo(int bar) {}
    //converts to
    public function foo(bar:int):void {}

Boring stuff.

Is there a tool to automate the transition between java syntax and actionscript? I'm not looking to compile java to swf, just transform the source code to be (often nonworking) actionscript.