public class RobolectricGeneratorAdapter
extends org.objectweb.asm.commons.GeneratorAdapter
Constructor | Description |
---|---|
RobolectricGeneratorAdapter(org.objectweb.asm.tree.MethodNode methodNode) |
Modifier and Type | Method | Description |
---|---|---|
org.objectweb.asm.Type |
getReturnType() |
|
void |
invokeMethod(String internalClassName,
org.objectweb.asm.tree.MethodNode method) |
|
boolean |
isStatic() |
|
void |
loadNull() |
|
void |
loadThisOrNull() |
|
void |
pushDefaultReturnValueToStack(org.objectweb.asm.Type type) |
Forces a return of a default value, depending on the method's return type
|
org.robolectric.internal.bytecode.ClassInstrumentor.TryCatch |
tryStart(org.objectweb.asm.Type exceptionType) |
arrayLength, arrayLoad, arrayStore, box, cast, catchException, checkCast, dup, dup2, dup2X1, dup2X2, dupX1, dupX2, endMethod, getAccess, getArgumentTypes, getField, getLocalType, getName, getStatic, goTo, ifCmp, ifICmp, ifNonNull, ifNull, ifZCmp, iinc, instanceOf, invokeConstructor, invokeDynamic, invokeInterface, invokeStatic, invokeVirtual, loadArg, loadArgArray, loadArgs, loadArgs, loadLocal, loadLocal, loadThis, mark, mark, math, monitorEnter, monitorExit, newArray, newInstance, newLabel, not, pop, pop2, push, push, push, push, push, push, push, push, push, putField, putStatic, ret, returnValue, setLocalType, storeArg, storeLocal, storeLocal, swap, swap, tableSwitch, tableSwitch, throwException, throwException, unbox, valueOf
newLocal, newLocalMapping, updateNewLocals, visitFrame, visitIincInsn, visitLocalVariable, visitLocalVariableAnnotation, visitMaxs, visitVarInsn
visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn
public RobolectricGeneratorAdapter(org.objectweb.asm.tree.MethodNode methodNode)
public void loadThisOrNull()
public boolean isStatic()
public void loadNull()
public org.objectweb.asm.Type getReturnType()
getReturnType
in class org.objectweb.asm.commons.GeneratorAdapter
public void pushDefaultReturnValueToStack(org.objectweb.asm.Type type)
type
- The method's return typepublic void invokeMethod(String internalClassName, org.objectweb.asm.tree.MethodNode method)
public org.robolectric.internal.bytecode.ClassInstrumentor.TryCatch tryStart(org.objectweb.asm.Type exceptionType)