import jp.gr.java_conf.skrb.annotation.Log; import jp.gr.java_conf.skrb.annotation.LogLevel; public class AnnotationSample { @Log(value = LogLevel.INFO) public AnnotationSample() { } @Log public AnnotationSample(String title, boolean flag) throws IllegalArgumentException { } @Log(LogLevel.FINE) public void foo(String msg, int x) throws Exception { System.out.println("Calls foo(" + msg + ", " + x + ")"); } @Log public void foo() throws Exception { System.out.println("Calls foo()"); } @Log public int bar(double x) { System.out.println("Calls bar(" + x + ")"); return (int)x; } public int bar() { System.out.println("Calls bar()"); return 0; } }