Package org.parboiled

Interface ContextAware<V>


public interface ContextAware<V>
Interface that can be implemented by classes containing action methods. If the class containing action methods implements this interface parboiled will use it to inform the instance of the current context, immediately before an action call.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setContext(Context<V> context)
    Called immediately before any parser action method invocation.
  • Method Details

    • setContext

      void setContext(Context<V> context)
      Called immediately before any parser action method invocation. Informs the object containing the action about the context to be used for the coming action call.
      Parameters:
      context - the context