public class SwitchBlock extends Object implements Block
Block.Noop| Constructor and Description |
|---|
SwitchBlock(String label,
Block exp,
Block default_,
List<CaseExpression> cases) |
| Modifier and Type | Method and Description |
|---|---|
Next |
eval(Env e,
Continuation k)
Executes this expression, then pass the result to the given continuation when it's available.
|
public SwitchBlock(String label, Block exp, Block default_, List<CaseExpression> cases)
public Next eval(Env e, Continuation k)
Block
To be more precise, this method does not evaluate the expression by itself synchronously.
Instead, the evaluation is done by the caller by repeatedly step executing
the resulting Next object.
Copyright © 2011–2019. All rights reserved.