java.lang.Object
net.covers1624.coffeegrinder.bytecode.transform.transformers.SwitchDetection
All Implemented Interfaces:
BlockTransformer, Transformer

public class SwitchDetection extends Object implements BlockTransformer
Created by covers1624 on 9/8/21.
  • Constructor Details

    • SwitchDetection

      public SwitchDetection()
  • Method Details

    • transform

      public void transform(Block block, BlockTransformContext ctx)
      Description copied from interface: BlockTransformer
      Runs the transform on the specified block.
      Specified by:
      transform in interface BlockTransformer
      Parameters:
      block - The block to transform.
      ctx - Additional context provided to the transform.
    • matchIncrementBlock

      @Nullable public static @Nullable Branch matchIncrementBlock(Block block)
    • matchDoWhileConditionBlock

      @Nullable public static @Nullable org.apache.commons.lang3.tuple.Pair<Block,Block> matchDoWhileConditionBlock(Block block)