http://www.perlmonks.org?node_id=526199


in reply to Re: parsing a java src file
in thread parsing a java src file

hmm, if i change your kk.java though to something like i have below, i get no results.
public class test { private String one; private String two; public test(String one, String two) { this.one = one; this.two = two; } public static final test alpha = new test("foo", "bar"); public final static test beta = new test("baz", "boo"); }
thoughts?

Replies are listed 'Best First'.
Re^3: parsing a java src file
by explorer (Chaplain) on Jan 28, 2006 at 21:05 UTC
    Solved... but is tricky,,, Only work if the body of the class end with a '}' at the first column of src.