Scanning Java Files

Starting with the [milestone:"0.4.0 Mars" Milestone 0.4.0 Mars], i have introduced a first Java parser which is able to extract any kind of comments and the method names from a given Java source code file. These informations will be put into the created index during
the scanning process.

Take a look at the following example file:

package com.soebes.supose.parse.java;

/*
* Default comment.
 */
public class Test1 {

    private String value;

    /** This is a JavaDoc comment */
    public Test1 () {
    }

    /* Comment voidMethod1
     */
    public void voidMethod1() {
    }

    //Line Comment staticMethod1
    public static void staticMethod1() {
    }

    public string getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }

    private void helperMethod() {
        setValue("test");
    }
}

The current parser will extract all the comments and all the method names, except the constructor. May be i will change this if more is needed.

Also available in: HTML TXT