public class InstructionMatchers extends Object
Constructor and Description |
---|
InstructionMatchers() |
Modifier and Type | Method and Description |
---|---|
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
aConditionalJump() |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
aConditionalJumpTo(Slot<org.objectweb.asm.tree.LabelNode> label) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
aJump() |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
aLabelNode(SlotWrite<org.objectweb.asm.tree.LabelNode> slot) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
anILoadOf(SlotRead<Integer> counterVariable) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
anIntegerConstant() |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
anIStore(SlotWrite<Integer> counterVariable) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
anIStoreTo(SlotRead<Integer> counterVariable) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
anyInstruction() |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
aVariableAccess(SlotWrite<Integer> counterVariable) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
debug(String msg) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
gotoLabel(SlotWrite<org.objectweb.asm.tree.LabelNode> loopEnd) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
incrementsVariable(SlotRead<Integer> counterVariable) |
static <T extends org.objectweb.asm.tree.AbstractInsnNode> |
isA(Class<T> cls) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
isInstruction(SlotRead<org.objectweb.asm.tree.AbstractInsnNode> target) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
jumpsTo(SlotRead<org.objectweb.asm.tree.LabelNode> loopStart) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
jumpsTo(SlotWrite<org.objectweb.asm.tree.LabelNode> label) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
labelNode(SlotRead<org.objectweb.asm.tree.LabelNode> loopEnd) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
methodCall() |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
methodCallNamed(String name) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
methodCallThatReturns(ClassName type) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
methodCallTo(ClassName owner,
String name) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
notAnInstruction()
Matches nodes that do not represent an instruction or label
|
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
opCode(int opcode) |
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
recordTarget(SlotRead<org.objectweb.asm.tree.AbstractInsnNode> target,
SlotWrite<Boolean> found)
Records if a instruction matches the target, but always returns true
|
static Match<org.objectweb.asm.tree.AbstractInsnNode> |
variableMatches(SlotRead<Integer> counterVariable) |
static <T extends org.objectweb.asm.tree.AbstractInsnNode> |
writeNodeToSlot(SlotWrite<T> slot,
Class<T> clazz) |
public static Match<org.objectweb.asm.tree.AbstractInsnNode> anyInstruction()
public static Match<org.objectweb.asm.tree.AbstractInsnNode> notAnInstruction()
public static Match<org.objectweb.asm.tree.AbstractInsnNode> opCode(int opcode)
public static <T extends org.objectweb.asm.tree.AbstractInsnNode> Match<org.objectweb.asm.tree.AbstractInsnNode> isA(Class<T> cls)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> incrementsVariable(SlotRead<Integer> counterVariable)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> anIStore(SlotWrite<Integer> counterVariable)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> aVariableAccess(SlotWrite<Integer> counterVariable)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> anIStoreTo(SlotRead<Integer> counterVariable)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> anILoadOf(SlotRead<Integer> counterVariable)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> variableMatches(SlotRead<Integer> counterVariable)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> anIntegerConstant()
public static Match<org.objectweb.asm.tree.AbstractInsnNode> aLabelNode(SlotWrite<org.objectweb.asm.tree.LabelNode> slot)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> aJump()
public static Match<org.objectweb.asm.tree.AbstractInsnNode> aConditionalJump()
public static Match<org.objectweb.asm.tree.AbstractInsnNode> aConditionalJumpTo(Slot<org.objectweb.asm.tree.LabelNode> label)
public static <T extends org.objectweb.asm.tree.AbstractInsnNode> Match<org.objectweb.asm.tree.AbstractInsnNode> writeNodeToSlot(SlotWrite<T> slot, Class<T> clazz)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> methodCallThatReturns(ClassName type)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> methodCall()
public static Match<org.objectweb.asm.tree.AbstractInsnNode> methodCallNamed(String name)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> methodCallTo(ClassName owner, String name)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> isInstruction(SlotRead<org.objectweb.asm.tree.AbstractInsnNode> target)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> recordTarget(SlotRead<org.objectweb.asm.tree.AbstractInsnNode> target, SlotWrite<Boolean> found)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> jumpsTo(SlotRead<org.objectweb.asm.tree.LabelNode> loopStart)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> jumpsTo(SlotWrite<org.objectweb.asm.tree.LabelNode> label)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> gotoLabel(SlotWrite<org.objectweb.asm.tree.LabelNode> loopEnd)
public static Match<org.objectweb.asm.tree.AbstractInsnNode> labelNode(SlotRead<org.objectweb.asm.tree.LabelNode> loopEnd)
Copyright © 2021 org.pitest. All rights reserved.