@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface Cached
Rule
s having arguments
This annotation can be used on rules with arguments; for instance:
Rule matchChar(final char c) { return Ch(c); }
The generated parser will then have a HashMap
whose keys are
CacheArguments
instances and values are Rule
s.
You must not use this annotation for rules having no arguments (this will raise an error).