2007-05-01から1ヶ月間の記事一覧

antlr

http://www.placidsystems.com/download.aspxOSSライセンスか…。普通に使いそうなので買ってもいいなーと。

あー、だからInterfaceOrAnnotationなのね。

public class Hoge { public static @interface Foo { } public class Bar implements Foo { public Class annotationType() { return Foo.class; } } public static void main(String[] args) { new Foo() { public Class annotationType() { return Foo.cl…

リアルにめも

public String hoge() { ... return getString(); } private String getString() { ... return "hogehoge"; } private static <T> T check(T o) { if (o == null) { throw new NullPointerException(); } return o; }// manipulate when return $a then $a := i</t>…