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

java.lang.Object
  extended by org.eclipse.ocl.examples.codegen.java.iteration.AbstractIteration2Java
All Implemented Interfaces:
IterationHelper, Iteration2Java
Direct Known Subclasses:
AbstractAccumulation2Java, AnyIteration2Java, ExistsIteration2Java, ForAllIteration2Java

public abstract class AbstractIteration2Java
extends java.lang.Object
implements Iteration2Java


Constructor Summary
AbstractIteration2Java()
           
 
Method Summary
 void appendAccumulatorInit(JavaStream js, CGBuiltInIterationCallExp cgIterationCallExp)
           
 CGTypeId getAccumulatorTypeId(CodeGenAnalyzer analyzer, CGBuiltInIterationCallExp cgIterationCallExp)
           
protected  CGValuedElement getBody(CGBuiltInIterationCallExp cgIterationCallExp)
           
protected  CGIterator getIterator(CGBuiltInIterationCallExp cgIterationCallExp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.java.Iteration2Java
appendFinalValue, appendUpdate
 

Constructor Detail

AbstractIteration2Java

public AbstractIteration2Java()
Method Detail

appendAccumulatorInit

public void appendAccumulatorInit(@NonNull
                                  JavaStream js,
                                  @NonNull
                                  CGBuiltInIterationCallExp cgIterationCallExp)
Specified by:
appendAccumulatorInit in interface Iteration2Java

getAccumulatorTypeId

@Nullable
public CGTypeId getAccumulatorTypeId(@NonNull
                                              CodeGenAnalyzer analyzer,
                                              @NonNull
                                              CGBuiltInIterationCallExp cgIterationCallExp)
Specified by:
getAccumulatorTypeId in interface IterationHelper

getBody

@NonNull
protected CGValuedElement getBody(@NonNull
                                          CGBuiltInIterationCallExp cgIterationCallExp)

getIterator

@NonNull
protected CGIterator getIterator(@NonNull
                                         CGBuiltInIterationCallExp cgIterationCallExp)