public class ForAllIteration2Java extends AbstractIteration2Java
Modifier and Type | Field and Description |
---|---|
static ForAllIteration2Java |
INSTANCE |
Constructor and Description |
---|
ForAllIteration2Java() |
Modifier and Type | Method and Description |
---|---|
void |
appendAccumulatorInit(JavaStream js,
CGBuiltInIterationCallExp cgIterationCallExp) |
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
|
CGTypeId |
getAccumulatorTypeId(CodeGenAnalyzer analyzer,
CGBuiltInIterationCallExp cgIterationCallExp) |
getBody, getIterator
@NonNull public static final ForAllIteration2Java INSTANCE
public void appendAccumulatorInit(@NonNull JavaStream js, @NonNull CGBuiltInIterationCallExp cgIterationCallExp)
appendAccumulatorInit
in interface Iteration2Java
appendAccumulatorInit
in class AbstractIteration2Java
public boolean appendFinalValue(@NonNull JavaStream js, @NonNull CGBuiltInIterationCallExp cgIterationCallExp)
Iteration2Java
Returns true if control flow continues into a break, false if terminated by a throw.
public boolean appendUpdate(@NonNull JavaStream js, @NonNull CGBuiltInIterationCallExp cgIterationCallExp)
Iteration2Java
Returns true if control flow continues to loop again, false if terminated by a throw.
@Nullable public CGTypeId getAccumulatorTypeId(@NonNull CodeGenAnalyzer analyzer, @NonNull CGBuiltInIterationCallExp cgIterationCallExp)
getAccumulatorTypeId
in interface IterationHelper
getAccumulatorTypeId
in class AbstractIteration2Java