org.apache.ode.bpel.compiler

## Class ForEachGenerator

- java.lang.Object
- - org.apache.ode.bpel.compiler.ForEachGenerator

- All Implemented Interfaces:
    ActivityGenerator

      public class ForEachGenerator
      extends java.lang.Object

  Generates code for `<forEach>` activities.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected CompilerContext` | `_context`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ForEachGenerator()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `compile(OActivity output, Activity src)` Generate compiled representation for the given activity definition.
    `OActivity` | `newInstance(Activity src)`
    `void` | `setContext(CompilerContext context)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### _context

          protected CompilerContext _context

  - ### Constructor Detail

    - #### ForEachGenerator

          public ForEachGenerator()

  - ### Method Detail

    - #### newInstance

          public OActivity newInstance(Activity src)

    - #### compile

          public void compile(OActivity output,
                     Activity src)

      Description copied from interface: `ActivityGenerator`
      Generate compiled representation for the given activity definition.
        `src` - activity definition

    - #### setContext

          public void setContext(CompilerContext context)

      Specified by:
        `setContext` in interface `ActivityGenerator`