|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.enhancer.EnhancementHelper
public class EnhancementHelper
A helper for the ASM ClassVisitor that encapsulates common class enhancement operations.
| Constructor Summary | |
|---|---|
EnhancementHelper(ClassVisitor classVisitor)
|
|
| Method Summary | |
|---|---|
String[] |
addInterface(String[] interfaces,
Class<?> newInterface)
Appends an interface to a String array of interfaces, returning the resulting expanded array. |
void |
createField(Class<?> fieldType,
String name)
Creates a new protected field in the current class. |
void |
createField(Class<?> fieldType,
String name,
boolean isTransient)
Creates a new protected field in the current class. |
void |
createProperty(Class<?> propertyType,
String name)
|
void |
createProperty(Class<?> propertyType,
String name,
boolean isTransient)
|
Type |
getCurrentClass()
|
String |
getPropertyField(String propertyName)
|
static boolean |
isGeneratedField(String name)
Returns whether the field name matches the naming pattern of fields generated by Cayenne enhancer. |
void |
reset(String className)
Resets helper to process a given class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnhancementHelper(ClassVisitor classVisitor)
| Method Detail |
|---|
public static boolean isGeneratedField(String name)
public Type getCurrentClass()
public String getPropertyField(String propertyName)
public void reset(String className)
public String[] addInterface(String[] interfaces,
Class<?> newInterface)
public void createField(Class<?> fieldType,
String name)
public void createField(Class<?> fieldType,
String name,
boolean isTransient)
public void createProperty(Class<?> propertyType,
String name)
public void createProperty(Class<?> propertyType,
String name,
boolean isTransient)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||