Interface ReducerFactory.Constructor

All Known Subinterfaces:
ReducerFactory.Constructor1<D,A1,R>, ReducerFactory.Constructor2<D,A1,A2,R>, ReducerFactory.Constructor3<D,A1,A2,A3,R>, ReducerFactory.Constructor4<D,A1,A2,A3,A4,R>, ReducerFactory.Constructor5<D,A1,A2,A3,A4,A5,R>, ReducerFactory.Constructor6<D,A1,A2,A3,A4,A5,A6,R>, ReducerFactory.Constructor7<D,A1,A2,A3,A4,A5,A6,A7,R>
Enclosing class:
ReducerFactory

public static interface ReducerFactory.Constructor
Base of all AST node-constructor functional interfaces.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <X> X
    Aborts the current creation of an AST node.
  • Method Details

    • abort

      static <X> X abort() throws ReducerFactory.Abort
      Aborts the current creation of an AST node.

      This method never returns. It is suitable to use as the argument of a return instruction.

      Type Parameters:
      X - the type of fictitious results
      Returns:
      never
      Throws:
      ReducerFactory.Abort - always