ClassInstrumentor.Decorator
@AutoService(Decorator.class) @Priority(-2147483648) public class ShadowDecorator extends Object implements ClassInstrumentor.Decorator
Constructor | Description |
---|---|
ShadowDecorator() |
Modifier and Type | Method | Description |
---|---|---|
void |
decorate(MutableClass mutableClass) |
|
void |
decorateMethodPreClassHandler(MutableClass mutableClass,
org.objectweb.asm.tree.MethodNode originalMethod,
String originalMethodName,
RobolectricGeneratorAdapter generator) |
For non-invokedynamic JVMs, generates this code:
|
public void decorate(MutableClass mutableClass)
decorate
in interface ClassInstrumentor.Decorator
public void decorateMethodPreClassHandler(MutableClass mutableClass, org.objectweb.asm.tree.MethodNode originalMethod, String originalMethodName, RobolectricGeneratorAdapter generator)
if (__robo_data__ instanceof ThisClass) { try { return __robo_data__.$$robo$$originalMethod(params); } (Throwable t) { throw RobolectricInternals.cleanStackTrace(t); } }Note that this method is only called by
OldClassInstrumentor
.decorateMethodPreClassHandler
in interface ClassInstrumentor.Decorator