Interface AccState<I,E>

All Known Subinterfaces:
AccStateGon<I,E,K,V>, AccStateTypeNonObject<I,E,K,V>, AccStateTypeProduceEntry<I,E,K,V>, AccStateTypeProduceNode<I,E,K,V>, AccStateTypeProduceObject<I,E,K,V>, AccStateTypeTransition<I,E,K,V>
All Known Implementing Classes:
AccStateArray, AccStateArrayInit, AccStateBase, AccStateCondition, AccStateFragmentBody, AccStateFragmentHead, AccStateInit, AccStateLiteral, AccStateLiteralProperty, AccStateMap, AccStateMemberSet, AccStateObject, AccStateProperty, AccStatePropertyBase, AccStateTransitionBase, AccStateTypeProduceEntryBase

public interface AccState<I,E>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    begin(Object stateId, I parentInput, E env, boolean skipOutput)
    FIXME What exactly is id? Is it the value by which this acc connects to the parent? The context and skipOutput flag are stored on the accumulator until end is called.
    Iterator<? extends AccState<I,E>>
    Sub-accumulators must be enumerated in the correct order.
    void
    end()
     
     
    default AccState<I,E>
     
    Get the id of the state for which this accumulator is notified.
    boolean
     
    transition(Object inputStateId, I binding, E env)
     
  • Method Details

    • getParent

      AccState<I,E> getParent()
    • getRoot

      default AccState<I,E> getRoot()
    • getStateId

      Object getStateId()
      Get the id of the state for which this accumulator is notified.
    • begin

      void begin(Object stateId, I parentInput, E env, boolean skipOutput) throws IOException
      FIXME What exactly is id? Is it the value by which this acc connects to the parent? The context and skipOutput flag are stored on the accumulator until end is called.
      Throws:
      IOException
    • hasBegun

      boolean hasBegun()
    • transition

      AccState<I,E> transition(Object inputStateId, I binding, E env) throws IOException
      Parameters:
      inputStateId - The stateId, typically extracted from the input by the driver. (Rationale: Only the driver needs to know how to extract the state from an input).
      binding -
      env -
      Returns:
      Throws:
      IOException
    • end

      void end() throws IOException
      Throws:
      IOException
    • children

      Iterator<? extends AccState<I,E>> children()
      Sub-accumulators must be enumerated in the correct order.