Class RobolectricGeneratorAdapter
java.lang.Object
org.objectweb.asm.MethodVisitor
org.objectweb.asm.commons.LocalVariablesSorter
org.objectweb.asm.commons.GeneratorAdapter
org.robolectric.internal.bytecode.RobolectricGeneratorAdapter
public class RobolectricGeneratorAdapter
extends org.objectweb.asm.commons.GeneratorAdapter
GeneratorAdapter implementation specific to generate code for Robolectric purposes
-
Field Summary
Fields inherited from class org.objectweb.asm.commons.GeneratorAdapter
ADD, AND, DIV, EQ, GE, GT, LE, LT, MUL, NE, NEG, OR, REM, SHL, SHR, SUB, USHR, XORFields inherited from class org.objectweb.asm.commons.LocalVariablesSorter
firstLocal, nextLocalFields inherited from class org.objectweb.asm.MethodVisitor
api, mv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.TypevoidinvokeMethod(String internalClassName, org.objectweb.asm.tree.MethodNode method) booleanisStatic()voidloadNull()voidvoidpushDefaultReturnValueToStack(org.objectweb.asm.Type type) Forces a return of a default value, depending on the method's return typeorg.robolectric.internal.bytecode.ClassInstrumentor.TryCatchtryStart(org.objectweb.asm.Type exceptionType) Methods inherited from class org.objectweb.asm.commons.GeneratorAdapter
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, valueOfMethods inherited from class org.objectweb.asm.commons.LocalVariablesSorter
newLocal, newLocalMapping, updateNewLocals, visitFrame, visitIincInsn, visitLocalVariable, visitLocalVariableAnnotation, visitMaxs, visitVarInsnMethods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, 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
-
Constructor Details
-
RobolectricGeneratorAdapter
public RobolectricGeneratorAdapter(org.objectweb.asm.tree.MethodNode methodNode)
-
-
Method Details
-
loadThisOrNull
public void loadThisOrNull() -
isStatic
public boolean isStatic() -
loadNull
public void loadNull() -
getReturnType
public org.objectweb.asm.Type getReturnType()- Overrides:
getReturnTypein classorg.objectweb.asm.commons.GeneratorAdapter
-
pushDefaultReturnValueToStack
public void pushDefaultReturnValueToStack(org.objectweb.asm.Type type) Forces a return of a default value, depending on the method's return type- Parameters:
type- The method's return type
-
invokeMethod
-
tryStart
public org.robolectric.internal.bytecode.ClassInstrumentor.TryCatch tryStart(org.objectweb.asm.Type exceptionType)
-