public class SandboxClassLoader.OldClassInstrumentor
extends java.lang.Object
| Constructor and Description |
|---|
OldClassInstrumentor(org.objectweb.asm.tree.ClassNode classNode,
boolean containsStubs) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDirectCallConstructor() |
protected void |
generateShadowCall(org.objectweb.asm.tree.MethodNode originalMethod,
java.lang.String originalMethodName,
org.robolectric.internal.bytecode.SandboxClassLoader.RobolectricGeneratorAdapter generator) |
void |
instrument() |
protected void |
interceptInvokeVirtualMethod(java.util.ListIterator<org.objectweb.asm.tree.AbstractInsnNode> instructions,
org.objectweb.asm.tree.MethodInsnNode targetMethod)
Decides to call through the appropriate method to intercept the method with an INVOKEVIRTUAL Opcode, depending if the invokedynamic bytecode instruction is available (Java 7+)
|
protected void |
writeCallToInitializing(org.robolectric.internal.bytecode.SandboxClassLoader.RobolectricGeneratorAdapter generator) |
public OldClassInstrumentor(org.objectweb.asm.tree.ClassNode classNode,
boolean containsStubs)
protected void addDirectCallConstructor()
protected void writeCallToInitializing(org.robolectric.internal.bytecode.SandboxClassLoader.RobolectricGeneratorAdapter generator)
protected void generateShadowCall(org.objectweb.asm.tree.MethodNode originalMethod,
java.lang.String originalMethodName,
org.robolectric.internal.bytecode.SandboxClassLoader.RobolectricGeneratorAdapter generator)
protected void interceptInvokeVirtualMethod(java.util.ListIterator<org.objectweb.asm.tree.AbstractInsnNode> instructions,
org.objectweb.asm.tree.MethodInsnNode targetMethod)
Decides to call through the appropriate method to intercept the method with an INVOKEVIRTUAL Opcode, depending if the invokedynamic bytecode instruction is available (Java 7+)
public void instrument()