| Package | Description |
|---|---|
| com.avaje.ebean.enhance.agent |
Used to weave Entity beans
|
| com.avaje.ebean.enhance.asm |
Provides a small and fast bytecode manipulation framework.
|
| com.avaje.ebean.enhance.asm.commons |
Provides some useful class and method adapters.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ConstructorAdapter
Modify the constructor to additionally initialise the entityBeanIntercept
field.
|
class |
MethodFieldAdapter
Changes the method code from using PUTFIELD and GETFIELD to calling our
special field interception methods.
|
class |
MethodStaticInitAdapter |
class |
ScopeTransAdapter
Adapts a method to support Transactional.
|
| Modifier and Type | Method and Description |
|---|---|
MethodVisitor |
ClassMeta.createMethodVisitor(MethodVisitor mv,
int access,
String name,
String desc) |
MethodVisitor |
ClassAdapterTransactional.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
Visit the methods specifically looking for method level transactional
annotations.
|
MethodVisitor |
ClassMetaReaderVisitor.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
Look for equals/hashCode implementations.
|
MethodVisitor |
ClassAdapterEntity.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
Replace the method code with field interception.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
IndexFieldWeaver.addPropertiesInit(MethodVisitor mv,
ClassMeta classMeta) |
void |
FieldMeta.appendCompare(MethodVisitor mv,
ClassMeta classMeta)
Append compare instructions if its a long, float or double.
|
void |
FieldMeta.appendGetPrimitiveIdValue(MethodVisitor mv,
ClassMeta classMeta)
Append byte code to return the Id value (for primitives).
|
void |
FieldMeta.appendSwitchGet(MethodVisitor mv,
ClassMeta classMeta,
boolean intercept)
As part of the switch statement to read the fields generate the get code.
|
void |
FieldMeta.appendSwitchSet(MethodVisitor mv,
ClassMeta classMeta,
boolean intercept) |
void |
FieldMeta.appendValueOf(MethodVisitor mv)
Append code to get the Object value of a primitive.
|
MethodVisitor |
ClassMeta.createMethodVisitor(MethodVisitor mv,
int access,
String name,
String desc) |
static void |
IndexFieldWeaver.visitIntInsn(MethodVisitor mv,
int value)
Helper method for visiting an int value.
|
void |
DeferredCode.write(MethodVisitor mv)
Write the bytecode to the method visitor.
|
| Constructor and Description |
|---|
ConstructorAdapter(MethodVisitor mv,
ClassMeta meta,
String constructorDesc) |
MethodFieldAdapter(MethodVisitor mv,
ClassMeta meta,
String methodDescription) |
MethodStaticInitAdapter(MethodVisitor mv,
ClassMeta classMeta) |
ScopeTransAdapter(ClassAdapterTransactional owner,
MethodVisitor mv,
int access,
String name,
String desc) |
| Modifier and Type | Field and Description |
|---|---|
protected MethodVisitor |
MethodVisitor.mv
The method visitor to which this visitor must delegate method calls.
|
| Modifier and Type | Method and Description |
|---|---|
MethodVisitor |
ClassWriter.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
MethodVisitor |
ClassVisitor.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
Visits a method of the class.
|
| Constructor and Description |
|---|
MethodVisitor(int api,
MethodVisitor mv)
Constructs a new
MethodVisitor. |
| Modifier and Type | Class and Description |
|---|---|
class |
AdviceAdapter
A
MethodVisitor to insert before, after and around
advices in methods and constructors. |
class |
FinallyAdapter |
class |
GeneratorAdapter
A
org.objectweb.asm.MethodVisitor with convenient methods to generate
code. |
class |
LocalVariablesSorter
A
MethodVisitor that renumbers local variables in their order of
appearance. |
| Constructor and Description |
|---|
AdviceAdapter(int api,
MethodVisitor mv,
int access,
String name,
String desc)
Creates a new
AdviceAdapter. |
FinallyAdapter(int api,
MethodVisitor mv,
int acc,
String name,
String desc) |
GeneratorAdapter(int access,
Method method,
MethodVisitor mv)
Creates a new
GeneratorAdapter. |
GeneratorAdapter(int api,
MethodVisitor mv,
int access,
String name,
String desc)
Creates a new
GeneratorAdapter. |
GeneratorAdapter(MethodVisitor mv,
int access,
String name,
String desc)
Creates a new
GeneratorAdapter. |
LocalVariablesSorter(int api,
int access,
String desc,
MethodVisitor mv)
Creates a new
LocalVariablesSorter. |
LocalVariablesSorter(int access,
String desc,
MethodVisitor mv)
Creates a new
LocalVariablesSorter. |
Copyright © 2016. All rights reserved.