public class AnyIteration2Java extends AbstractIteration2Java
Modifier and Type | Field and Description |
---|---|
static AnyIteration2Java |
INSTANCE |
Constructor and Description |
---|
AnyIteration2Java() |
Modifier and Type | Method and Description |
---|---|
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
|
appendAccumulatorInit, getAccumulatorTypeId, getBody, getIterator
@NonNull public static final AnyIteration2Java INSTANCE
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.
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.