public class ComparisonMatching
extends java.lang.Object
| Constructor and Description |
|---|
ComparisonMatching() |
| Modifier and Type | Method and Description |
|---|---|
static @Nullable Comparison |
matchComparison(@Nullable Instruction insn)
Matches the given Instruction to a
Comparison instruction. |
static @Nullable Comparison |
matchComparison(@Nullable Instruction insn,
Comparison.ComparisonKind kind)
Match the given Instruction to a
Comparison of the given kind. |
static @Nullable Comparison |
matchComparison(@Nullable Instruction insn,
Comparison.ComparisonKind kind,
LocalVariable left,
LocalVariable right)
Match the given Instruction to a
Comparison of the given kind
which loads the given left and right variables. |
static @Nullable Comparison |
matchEqualNull(@Nullable Instruction insn,
LocalVariable variable)
Matches a
Comparison which checks if the given variable
equals LdcNull. |
static @Nullable Comparison |
matchNotEqualNull(@Nullable Instruction insn,
LocalVariable variable)
Matches a
Comparison which checks if the given variable
does not equal LdcNull. |
@Nullable public static @Nullable Comparison matchComparison(@Nullable @Nullable Instruction insn)
Comparison instruction.insn - The Instruction to match.Comparison or null.@Nullable public static @Nullable Comparison matchComparison(@Nullable @Nullable Instruction insn, Comparison.ComparisonKind kind)
Comparison of the given kind.insn - The Instruction to match.kind - The Kind of comparison.Comparison or null.@Nullable public static @Nullable Comparison matchComparison(@Nullable @Nullable Instruction insn, Comparison.ComparisonKind kind, LocalVariable left, LocalVariable right)
Comparison of the given kind
which loads the given left and right variables.insn - The Instruction to match.kind - The Kind of comparison.left - The Left LocalVariable.right - The right LocalVariable.Comparison or null.@Nullable public static @Nullable Comparison matchNotEqualNull(@Nullable @Nullable Instruction insn, LocalVariable variable)
Comparison which checks if the given variable
does not equal LdcNull.insn - The Instruction to match.variable - The variable.Comparison or null@Nullable public static @Nullable Comparison matchEqualNull(@Nullable @Nullable Instruction insn, LocalVariable variable)
Comparison which checks if the given variable
equals LdcNull.insn - The Instruction to match.variable - The variable.Comparison or null