public final class InstrSupport
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
ASM_API_VERSION |
ASM API version
|
static int |
DATAFIELD_ACC |
Access modifiers of the field that stores coverage information of a
class.
|
static java.lang.String |
DATAFIELD_DESC |
Data type of the field that stores coverage information for a class (
boolean[] ). |
static int |
DATAFIELD_INTF_ACC |
Access modifiers of the field that stores coverage information of a Java
8 interface.
|
static java.lang.String |
DATAFIELD_NAME |
Name of the field that stores coverage information of a class.
|
static int |
INITMETHOD_ACC |
Access modifiers of the initialization method.
|
static java.lang.String |
INITMETHOD_DESC |
Descriptor of the initialization method.
|
static java.lang.String |
INITMETHOD_NAME |
Name of the initialization method.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
assertNotInstrumented(java.lang.String member,
java.lang.String owner) |
Ensures that the given member does not correspond to a internal member
created by the instrumentation process.
|
static void |
push(org.objectweb.asm.MethodVisitor mv,
int value) |
Generates the instruction to push the given int value on the stack.
|
public static final int ASM_API_VERSION
public static final java.lang.String DATAFIELD_NAME
public static final int DATAFIELD_ACC
if the field is final, it must be declared in the current class, and the instruction must occur in the
<clinit>
method of the current class.
public static final int DATAFIELD_INTF_ACC
Fields of interfaces must have their ACC_PUBLIC, ACC_STATIC, and ACC_FINAL flags set; they may have their ACC_SYNTHETIC flag set and must not have any of the other flags.
public static final java.lang.String DATAFIELD_DESC
boolean[]
).public static final java.lang.String INITMETHOD_NAME
public static final java.lang.String INITMETHOD_DESC
public static final int INITMETHOD_ACC
public static void assertNotInstrumented(java.lang.String member, java.lang.String owner) throws java.lang.IllegalStateException
member
- name of the member to checkowner
- name of the class owning the memberjava.lang.IllegalStateException
- thrown if the member has the same name than the
instrumentation memberpublic static void push(org.objectweb.asm.MethodVisitor mv, int value)
GeneratorAdapter.push(int)
.mv
- visitor to emit the instructionvalue
- the value to be pushed on the stack.Copyright © 2018. All rights reserved.