public class SwitchDetection extends java.lang.Object implements BlockTransformer
| Modifier and Type | Class and Description |
|---|---|
static class |
SwitchDetection.LoopContext |
| Constructor and Description |
|---|
SwitchDetection() |
| Modifier and Type | Method and Description |
|---|---|
static @Nullable org.apache.commons.lang3.tuple.Pair<Block,Block> |
matchDoWhileConditionBlock(Block block) |
static @Nullable Branch |
matchIncrementBlock(Block block) |
void |
transform(Block block,
BlockTransformContext ctx)
Runs the transform on the specified block.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, stepTypepublic void transform(Block block, BlockTransformContext ctx)
BlockTransformertransform in interface BlockTransformerblock - The block to transform.ctx - Additional context provided to the transform.