Class LdcMatching
java.lang.Object
net.covers1624.coffeegrinder.bytecode.matching.LdcMatching
Created by covers1624 on 21/7/21.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable LdcBooleanmatchLdcBoolean(@Nullable Instruction insn, boolean value) Matches the provided instruction against anLdcBooleaninstruction with the provided value.static @Nullable LdcNumbermatchLdcInt(@Nullable Instruction insn) Matches the provided instruction against anLdcNumberinstruction who's type is an integer.static @Nullable LdcNumbermatchLdcInt(@Nullable Instruction insn, int value) Matches the provided instruction against anLdcNumberinstruction with the provided value.static @Nullable InstructionmatchNegation(@Nullable Instruction insn)
-
Constructor Details
-
LdcMatching
public LdcMatching()
-
-
Method Details
-
matchLdcInt
Matches the provided instruction against anLdcNumberinstruction who's type is an integer.- Parameters:
insn- The instruction to match.- Returns:
- The
LdcNumberornull.
-
matchLdcInt
@Nullable public static @Nullable LdcNumber matchLdcInt(@Nullable @Nullable Instruction insn, int value) Matches the provided instruction against anLdcNumberinstruction with the provided value. -
matchLdcBoolean
@Nullable public static @Nullable LdcBoolean matchLdcBoolean(@Nullable @Nullable Instruction insn, boolean value) Matches the provided instruction against anLdcBooleaninstruction with the provided value.- Parameters:
insn- The Instruction to match.value- The value that must be loaded by theLdcBoolean.- Returns:
- The
LdcBooleanornull.
-
matchNegation
-