Class AssignmentMatching
java.lang.Object
net.covers1624.coffeegrinder.bytecode.matching.AssignmentMatching
Created by covers1624 on 22/11/21.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable CompoundAssignmentmatchCompoundAssignment(@Nullable Instruction insn) Matches the given Instruction to aCompoundAssignmentinstruction.static @Nullable CompoundAssignmentmatchCompoundAssignment(@Nullable Instruction insn, BinaryOp op) Match the given Instruction to aCompoundAssignmentof the given operation.static @Nullable CompoundAssignmentmatchCompoundAssignment(@Nullable Instruction insn, BinaryOp op, int ldc) Match the given Instruction to aCompoundAssignmentof the given operation with the givenLdcNumbervalue.static @Nullable CompoundAssignmentmatchPreInc(@Nullable Instruction insn) Match the given Instruction to aCompoundAssignmenttype with:static @Nullable Binary
-
Constructor Details
-
AssignmentMatching
public AssignmentMatching()
-
-
Method Details
-
matchCompoundAssignment
@Nullable public static @Nullable CompoundAssignment matchCompoundAssignment(@Nullable @Nullable Instruction insn) Matches the given Instruction to aCompoundAssignmentinstruction.- Parameters:
insn- The Instruction to match.- Returns:
- The
CompoundAssignmentornull.
-
matchCompoundAssignment
@Nullable public static @Nullable CompoundAssignment matchCompoundAssignment(@Nullable @Nullable Instruction insn, BinaryOp op) Match the given Instruction to aCompoundAssignmentof the given operation.- Parameters:
insn- The Instruction to match.op- The Kind of operation.- Returns:
- The
CompoundAssignmentornull.
-
matchCompoundAssignment
@Nullable public static @Nullable CompoundAssignment matchCompoundAssignment(@Nullable @Nullable Instruction insn, BinaryOp op, int ldc) Match the given Instruction to aCompoundAssignmentof the given operation with the givenLdcNumbervalue.- Parameters:
insn- The Instruction to match.op- The Kind of operation.ldc- TheLdcNumbervalue.- Returns:
- The
CompoundAssignmentornull.
-
matchPreInc
@Nullable public static @Nullable CompoundAssignment matchPreInc(@Nullable @Nullable Instruction insn) Match the given Instruction to aCompoundAssignmenttype with:- Either ADD or SUB operation - Int value of 1
- Parameters:
insn- The Instruction to match.- Returns:
- The
CompoundAssignmentornull.
-
matchStoreArgBinaryWithPossibleCast
-