Class AssignmentMatching

java.lang.Object
net.covers1624.coffeegrinder.bytecode.matching.AssignmentMatching

public class AssignmentMatching extends Object
Created by covers1624 on 22/11/21.
  • Constructor Details

    • AssignmentMatching

      public AssignmentMatching()
  • Method Details

    • matchCompoundAssignment

      @Nullable public static @Nullable CompoundAssignment matchCompoundAssignment(@Nullable @Nullable Instruction insn, BinaryOp op)
      Match the given Instruction to a CompoundAssignment of the given operation.
      Parameters:
      insn - The Instruction to match.
      op - The Kind of operation.
      Returns:
      The CompoundAssignment or null.
    • matchCompoundAssignment

      @Nullable public static @Nullable CompoundAssignment matchCompoundAssignment(@Nullable @Nullable Instruction insn, BinaryOp op, int ldc)
      Match the given Instruction to a CompoundAssignment of the given operation with the given LdcNumber value.
      Parameters:
      insn - The Instruction to match.
      op - The Kind of operation.
      ldc - The LdcNumber value.
      Returns:
      The CompoundAssignment or null.
    • matchPreInc

      @Nullable public static @Nullable CompoundAssignment matchPreInc(@Nullable @Nullable Instruction insn)
      Match the given Instruction to a CompoundAssignment type with:
        - Either ADD or SUB operation
        - Int value of 1
       
      Parameters:
      insn - The Instruction to match.
      Returns:
      The CompoundAssignment or null.
    • matchStoreArgBinaryWithPossibleCast

      @Nullable public static @Nullable Binary matchStoreArgBinaryWithPossibleCast(Store store)