public interface Action<V>
ContextAware
interface it will be used to inform the object of the
current parsing Context
immediately before the invocation of the run(org.parboiled.Context<V>)
method.
Additionally, if the class implementing this interface is an inner class (anonymous or not) and its outer class(es)
implement(s) ContextAware
its outer class(es) will also be informed object of the current parsing Context
immediately before the invocation of the actions run(org.parboiled.Context<V>)
method.
This allows simple anonymous action class implementations directly in the parser rule definitions, even when
they access context-sensitive methods defined in the BaseActions or BaseParser classes.Modifier and Type | Method and Description |
---|---|
boolean |
run(Context<V> context)
Runs the parser action.
|