InThePast annotation = (InThePast) a;
errMsg = messages.getMessage(annotation.errorCode(), annotation.message());
pastFutureMethod = "lessThan";
applyIfValang = valangToJS(annotation.applyIf());
} else if (a instanceof InTheFuture) {
InTheFuture annotation = (InTheFuture) a;
errMsg = messages.getMessage(annotation.errorCode(), annotation.message());
pastFutureMethod = "moreThan";
applyIfValang = valangToJS(annotation.applyIf());
}
StringBuffer sb = new StringBuffer();
sb.append(" function() {return this.");
sb.append(pastFutureMethod);