@Documented @Retention(value=RUNTIME) @Target(value={METHOD,TYPE}) public @interface ExplicitActionsOnly
Action
s
When used in rules, expressions returning boolean
s are wrapped
into Action
s by the parser generator. Example:
Rule myRule() { // Only if depth level is less than 5 return Sequence(someRule(), getContext().getLevel() < 5); }
If this annotation is used (either at the method level or at the class
level), such automatic wrapping does not happen anymore and you have to use
BaseParser.ACTION(boolean)
to make actions explicit.