org.eclipse.ocl.examples.codegen.java.iteration
Class ForAllIteration2Java
java.lang.Object
org.eclipse.ocl.examples.codegen.java.iteration.AbstractIteration2Java
org.eclipse.ocl.examples.codegen.java.iteration.ForAllIteration2Java
- All Implemented Interfaces:
- IterationHelper, Iteration2Java
public class ForAllIteration2Java
- extends AbstractIteration2Java
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
@NonNull
public static final ForAllIteration2Java INSTANCE
ForAllIteration2Java
public ForAllIteration2Java()
appendAccumulatorInit
public void appendAccumulatorInit(@NonNull
JavaStream js,
@NonNull
CGBuiltInIterationCallExp cgIterationCallExp)
- Specified by:
appendAccumulatorInit
in interface Iteration2Java
- Overrides:
appendAccumulatorInit
in class AbstractIteration2Java
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.
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.
getAccumulatorTypeId
@Nullable
public CGTypeId getAccumulatorTypeId(@NonNull
CodeGenAnalyzer analyzer,
@NonNull
CGBuiltInIterationCallExp cgIterationCallExp)
- Specified by:
getAccumulatorTypeId
in interface IterationHelper
- Overrides:
getAccumulatorTypeId
in class AbstractIteration2Java