public class IsUniqueIteration2Java extends AbstractAccumulation2Java
| Modifier and Type | Field and Description |
|---|---|
static IsUniqueIteration2Java |
INSTANCE |
| Constructor and Description |
|---|
IsUniqueIteration2Java() |
| 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.
|
void |
appendUpdate(JavaStream js,
CGBuiltInIterationCallExp cgIterationCallExp) |
CGTypeId |
getAccumulatorTypeId(CodeGenAnalyzer analyzer,
CGBuiltInIterationCallExp cgIterationCallExp) |
getAccumulator, getAccumulatorClassgetBody, getIterator@NonNull public static final IsUniqueIteration2Java INSTANCE
public void appendAccumulatorInit(@NonNull
JavaStream js,
@NonNull
CGBuiltInIterationCallExp cgIterationCallExp)
appendAccumulatorInit in interface Iteration2JavaappendAccumulatorInit in class AbstractAccumulation2Javapublic boolean appendFinalValue(@NonNull
JavaStream js,
@NonNull
CGBuiltInIterationCallExp cgIterationCallExp)
Iteration2JavaReturns true if control flow continues into a break, false if terminated by a throw.
appendFinalValue in interface Iteration2JavaappendFinalValue in class AbstractAccumulation2Javapublic void appendUpdate(@NonNull
JavaStream js,
@NonNull
CGBuiltInIterationCallExp cgIterationCallExp)
@Nullable public CGTypeId getAccumulatorTypeId(@NonNull CodeGenAnalyzer analyzer, @NonNull CGBuiltInIterationCallExp cgIterationCallExp)
getAccumulatorTypeId in interface IterationHelpergetAccumulatorTypeId in class AbstractAccumulation2Java