org.eclipse.ocl.examples.codegen.java.iteration
Class AnyIteration2Java

java.lang.Object
  extended by org.eclipse.ocl.examples.codegen.java.iteration.AbstractIteration2Java
      extended by org.eclipse.ocl.examples.codegen.java.iteration.AnyIteration2Java
All Implemented Interfaces:
IterationHelper, Iteration2Java

public class AnyIteration2Java
extends AbstractIteration2Java


Field Summary
static AnyIteration2Java INSTANCE
           
 
Constructor Summary
AnyIteration2Java()
           
 
Method Summary
 boolean appendFinalValue(JavaStream js, CGBuiltInIterationCallExp cgIterationCallExp)
          Append the code to assign the final value to the result.
 boolean appendUpdate(JavaStream js, CGBuiltInIterationCallExp cgIterationCallExp)
          Append the code to update the accumulator
 
Methods inherited from class org.eclipse.ocl.examples.codegen.java.iteration.AbstractIteration2Java
appendAccumulatorInit, getAccumulatorTypeId, getBody, getIterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

@NonNull
public static final AnyIteration2Java INSTANCE
Constructor Detail

AnyIteration2Java

public AnyIteration2Java()
Method Detail

appendUpdate

public boolean appendUpdate(@NonNull
                            JavaStream js,
                            @NonNull
                            CGBuiltInIterationCallExp cgIterationCallExp)
Description copied from interface: Iteration2Java
Append the code to update the accumulator

Returns true if control flow continues to loop again, false if terminated by a throw.


appendFinalValue

public boolean appendFinalValue(@NonNull
                                JavaStream js,
                                @NonNull
                                CGBuiltInIterationCallExp cgIterationCallExp)
Description copied from interface: Iteration2Java
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.