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

public class LdcMatching extends Object
Created by covers1624 on 21/7/21.
  • Constructor Details

    • LdcMatching

      public LdcMatching()
  • Method Details

    • matchLdcInt

      @Nullable public static @Nullable LdcNumber matchLdcInt(@Nullable @Nullable Instruction insn)
      Matches the provided instruction against an LdcNumber instruction who's type is an integer.
      Parameters:
      insn - The instruction to match.
      Returns:
      The LdcNumber or null.
    • matchLdcInt

      @Nullable public static @Nullable LdcNumber matchLdcInt(@Nullable @Nullable Instruction insn, int value)
      Matches the provided instruction against an LdcNumber instruction with the provided value.
      Parameters:
      insn - The Instruction to match.
      value - The value that must be loaded by the LdcNumber.
      Returns:
      The LdcNumber or null.
    • matchLdcBoolean

      @Nullable public static @Nullable LdcBoolean matchLdcBoolean(@Nullable @Nullable Instruction insn, boolean value)
      Matches the provided instruction against an LdcBoolean instruction with the provided value.
      Parameters:
      insn - The Instruction to match.
      value - The value that must be loaded by the LdcBoolean.
      Returns:
      The LdcBoolean or null.
    • matchNegation

      @Nullable public static @Nullable Instruction matchNegation(@Nullable @Nullable Instruction insn)