Class AbstractMatcher
- java.lang.Object
-
- org.jacoco.core.internal.analysis.filter.AbstractMatcher
-
- Direct Known Subclasses:
EnumEmptyConstructorFilter.Matcher
,KotlinCoroutineFilter.Matcher
,KotlinDefaultArgumentsFilter.Matcher
,KotlinLateinitFilter.Matcher
,KotlinNotNullOperatorFilter.Matcher
,KotlinUnsafeCastOperatorFilter.Matcher
,KotlinWhenFilter.Matcher
,KotlinWhenStringFilter.Matcher
,PrivateEmptyNoArgConstructorFilter.Matcher
,StringSwitchEcjFilter.Matcher
,StringSwitchJavacFilter.Matcher
,SynchronizedFilter.Matcher
,TryWithResourcesEcjFilter.Matcher
,TryWithResourcesJavac11Filter.Matcher
,TryWithResourcesJavacFilter.Matcher
abstract class AbstractMatcher extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AbstractMatcher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
firstIsALoad0(org.objectweb.asm.tree.MethodNode methodNode)
(package private) void
next()
Movescursor
to next instruction.(package private) void
nextIs(int opcode)
Movescursor
to next instruction if it has given opcode, otherwise sets it tonull
.(package private) void
nextIsInvokeStatic(java.lang.String owner, java.lang.String name)
(package private) void
nextIsInvokeSuper(java.lang.String owner, java.lang.String desc)
Movescursor
to next instruction if it isINVOKESPECIAL <init>
with given owner and descriptor, otherwise sets it tonull
.(package private) void
nextIsInvokeVirtual(java.lang.String owner, java.lang.String name)
(package private) void
nextIsSwitch()
(package private) void
nextIsType(int opcode, java.lang.String desc)
Movescursor
to next instruction if it isTypeInsnNode
with given opcode and operand, otherwise sets it tonull
.(package private) void
nextIsVar(int opcode, java.lang.String name)
(package private) void
skipNonOpcodes()
(package private) static org.objectweb.asm.tree.AbstractInsnNode
skipNonOpcodes(org.objectweb.asm.tree.AbstractInsnNode cursor)
Returns first instruction from given and following it that is notAbstractInsnNode.FRAME
,AbstractInsnNode.LABEL
,AbstractInsnNode.LINE
.
-
-
-
Method Detail
-
firstIsALoad0
final void firstIsALoad0(org.objectweb.asm.tree.MethodNode methodNode)
-
nextIsType
final void nextIsType(int opcode, java.lang.String desc)
Movescursor
to next instruction if it isTypeInsnNode
with given opcode and operand, otherwise sets it tonull
.
-
nextIsInvokeSuper
final void nextIsInvokeSuper(java.lang.String owner, java.lang.String desc)
Movescursor
to next instruction if it isINVOKESPECIAL <init>
with given owner and descriptor, otherwise sets it tonull
.
-
nextIsInvokeVirtual
final void nextIsInvokeVirtual(java.lang.String owner, java.lang.String name)
-
nextIsInvokeStatic
final void nextIsInvokeStatic(java.lang.String owner, java.lang.String name)
-
nextIsVar
final void nextIsVar(int opcode, java.lang.String name)
-
nextIsSwitch
final void nextIsSwitch()
-
nextIs
final void nextIs(int opcode)
Movescursor
to next instruction if it has given opcode, otherwise sets it tonull
.
-
next
final void next()
Movescursor
to next instruction.
-
skipNonOpcodes
final void skipNonOpcodes()
-
skipNonOpcodes
static org.objectweb.asm.tree.AbstractInsnNode skipNonOpcodes(org.objectweb.asm.tree.AbstractInsnNode cursor)
Returns first instruction from given and following it that is notAbstractInsnNode.FRAME
,AbstractInsnNode.LABEL
,AbstractInsnNode.LINE
.
-
-