org.eclipse.ocl.examples.codegen.java
Interface Iteration2Java

All Superinterfaces:
IterationHelper
All Known Implementing Classes:
AbstractAccumulation2Java, AbstractIteration2Java, AnyIteration2Java, CollectIteration2Java, CollectNestedIteration2Java, ExistsIteration2Java, ForAllIteration2Java, IsUniqueIteration2Java, IterateIteration2Java, OneIteration2Java, RejectIteration2Java, SelectIteration2Java

public interface Iteration2Java
extends IterationHelper


Method Summary
 void appendAccumulatorInit(JavaStream js, CGBuiltInIterationCallExp cgIterationCallExp)
           
 boolean appendFinalValue(JavaStream js, CGBuiltInIterationCallExp cgIterationCallExp)
          Append the code to assign the final value to the result.
 void appendUpdate(JavaStream js, CGBuiltInIterationCallExp cgIterationCallExp)
           
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.generator.IterationHelper
getAccumulatorTypeId
 

Method Detail

appendAccumulatorInit

void appendAccumulatorInit(@NonNull
                           JavaStream js,
                           @NonNull
                           CGBuiltInIterationCallExp cgIterationCallExp)

appendFinalValue

boolean appendFinalValue(@NonNull
                         JavaStream js,
                         @NonNull
                         CGBuiltInIterationCallExp cgIterationCallExp)
Append the code to assign the final value to the result.

Returns true if control flow continues into a break, false if terminated by a throw.


appendUpdate

void appendUpdate(@NonNull
                  JavaStream js,
                  @NonNull
                  CGBuiltInIterationCallExp cgIterationCallExp)