public interface ContextAware<V>
If a class implementing this interface is used in a parser, the generated
parser will use this interface to inform the instance of the current
context. This applies to Actions but also to parsers within parsers.
Note that implementing this interface currently will not prevent you from
suffering the limits of actions; that is, if you are not the second or more
member of a SequenceMatcher, you won't get a context (it will be
null in this case).
| Modifier and Type | Method and Description |
|---|---|
void |
setContext(Context<V> context)
Called immediately before any parser action method invocation.
|