private static class DmoProxyPlugin.IndexedGetterAssembler extends DmoProxyPlugin.IndexedProxyMethod
Constructor and Description |
---|
IndexedGetterAssembler(int extent)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
assemble(org.objectweb.asm.ClassWriter classWriter,
org.objectweb.asm.MethodVisitor mv,
java.lang.reflect.Method method,
int methodIndex,
boolean parentIsHandler,
java.lang.String proxyName)
Assemble the bytecode which comprises the proxy method.
|
assembleRangeCheck
IndexedGetterAssembler(int extent)
extent
- Extent of the associated property.public void assemble(org.objectweb.asm.ClassWriter classWriter, org.objectweb.asm.MethodVisitor mv, java.lang.reflect.Method method, int methodIndex, boolean parentIsHandler, java.lang.String proxyName)
assemble
in class ProxyAssembler.ProxyMethod
classWriter
- Class writer for proxy class.mv
- Method visitor for this method.method
- Method for which this proxy is being implemented.methodIndex
- Index of this method within the array of methods used by the invocation handler.parentIsHandler
- true
if the parent class implements the
InvocationHandler
interface, else false
. If
true
, no separate instance field will be assembled to store the
invocation handler reference, as the instance of this class itself will act as
the handler.proxyName
- Internal form of the proxy class' name.