0.2の予定

Irenka 0.2ではちょっとクエリを強化の予定。

/**
 * int/Integer型として評価される全ての式を検出する。
 * @when
 */
public void found(CtExpression<Integer> intExpr) {
    // ...
}
/**
 * Button/JButton型のフィールドは名前にbuttonが入っていないとだめ。
 * @when
 *     field :
 *         {@link CtField<? extends java.awt.Button>},
 *         {@link CtField<? extends javax.swing.JButton>}
 *     field.simpleName !~ ".*[Bb]utton.*"
 */
public void found(CtField<?> field, Messager msgr) {
    msgr.error(field, "button..:" + field.getSimpleName());
}