public class AssignmentMatching
extends java.lang.Object
| Constructor and Description |
|---|
AssignmentMatching() |
| Modifier and Type | Method and Description |
|---|---|
static @Nullable CompoundAssignment |
matchCompoundAssignment(@Nullable Instruction insn)
Matches the given Instruction to a
CompoundAssignment instruction. |
static @Nullable CompoundAssignment |
matchCompoundAssignment(@Nullable Instruction insn,
BinaryOp op)
Match the given Instruction to a
CompoundAssignment of the given operation. |
static @Nullable CompoundAssignment |
matchCompoundAssignment(@Nullable Instruction insn,
BinaryOp op,
int ldc)
Match the given Instruction to a
CompoundAssignment of the given operation
with the given LdcNumber value. |
static @Nullable CompoundAssignment |
matchPreInc(@Nullable Instruction insn)
Match the given Instruction to a
CompoundAssignment type with: |
static @Nullable Binary |
matchStoreArgBinaryWithPossibleCast(Store store) |
@Nullable public static @Nullable CompoundAssignment matchCompoundAssignment(@Nullable @Nullable Instruction insn)
CompoundAssignment instruction.insn - The Instruction to match.CompoundAssignment or null.@Nullable public static @Nullable CompoundAssignment matchCompoundAssignment(@Nullable @Nullable Instruction insn, BinaryOp op)
CompoundAssignment of the given operation.insn - The Instruction to match.op - The Kind of operation.CompoundAssignment or null.@Nullable public static @Nullable CompoundAssignment matchCompoundAssignment(@Nullable @Nullable Instruction insn, BinaryOp op, int ldc)
CompoundAssignment of the given operation
with the given LdcNumber value.insn - The Instruction to match.op - The Kind of operation.ldc - The LdcNumber value.CompoundAssignment or null.@Nullable public static @Nullable CompoundAssignment matchPreInc(@Nullable @Nullable Instruction insn)
CompoundAssignment type with:
- Either ADD or SUB operation - Int value of 1
insn - The Instruction to match.CompoundAssignment or null.