|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RewriteMapper
These are the methods required by JavassistClassRewriter
Method Summary | ||
---|---|---|
void |
cifpName(java.lang.Object thiz,
java.lang.Class clazz,
java.lang.Class[] argTypes,
java.lang.Object[] values)
Deprecated. No longer rewrite constructors |
|
|
cifpObject(java.lang.Class<T> clazz,
java.lang.Class[] argTypes,
java.lang.Object[] values)
Deprecated. No longer rewrite constructors |
|
|
createVirtualCollection(java.lang.Object thiz,
rdf relation,
java.util.Collection<T> old,
java.lang.reflect.Type fieldType)
get the value of a virtual collection field. |
|
|
getCollectionField(java.lang.Object thiz,
rdf relation,
java.util.Collection<T> old,
java.lang.reflect.Type fieldType)
get the value of a collection field. |
|
java.lang.Object |
getField(java.lang.Class fieldClass,
java.lang.Object obj,
rdf relation,
java.lang.Object value)
Get the value of a field |
|
|
replaceVirtualCollection(java.lang.Object thiz,
rdf relation,
java.util.Collection<T> oldColl,
java.util.Collection<T> newColl,
java.lang.reflect.Type genType)
Replace the elements in the collection with the new elements. |
|
|
setCollectionField(java.lang.Object sourceObj,
rdf relation,
java.util.Collection<T> newColl,
java.lang.reflect.Type typeT)
Set a Collection on a given field. |
|
java.lang.Object |
setField(java.lang.Class fieldClass,
java.lang.Object obj,
rdf relation,
java.lang.Object value)
Set a given field |
Method Detail |
---|
<T> java.util.Collection<T> setCollectionField(java.lang.Object sourceObj, rdf relation, java.util.Collection<T> newColl, java.lang.reflect.Type typeT)
obj
- the object on which the field is attachedrelation
- rdf annotation on the fieldnewcoll
- the value that the field should be set totype
- the generic type of the collection (if known)
<T> java.util.Collection<T> getCollectionField(java.lang.Object thiz, rdf relation, java.util.Collection<T> old, java.lang.reflect.Type fieldType)
fieldType
- the generic type of the collectionobj
- the object on which the field is attachedrelation
- annotation on this fieldold
- the old value of the field - the one currently referred to
<T> RDFCollection<T> createVirtualCollection(java.lang.Object thiz, rdf relation, java.util.Collection<T> old, java.lang.reflect.Type fieldType)
thiz
- the object on which the field is attachedrelation
- annotation on this fieldold
- the old value of the field - the one currently referred tofieldType
- Gernics type info of the Collection
<T> RDFCollection<T> replaceVirtualCollection(java.lang.Object thiz, rdf relation, java.util.Collection<T> oldColl, java.util.Collection<T> newColl, java.lang.reflect.Type genType)
thiz
- the object on which the field is attachedrelation
- the annotation on the fieldoldColl
- the old collection that the field was set tonewColl
- the new collection the it should be replaced bygenType
- the type of the objects in the collection
java.lang.Object setField(java.lang.Class fieldClass, java.lang.Object obj, rdf relation, java.lang.Object value)
fieldClass
- The class of the field being setobj
- The object on which the field is attachedrelation
- The rdf annotation on the fieldvalue
- the value that the field should be set to
java.lang.Object getField(java.lang.Class fieldClass, java.lang.Object obj, rdf relation, java.lang.Object value)
fieldClass
- the class of the fieldobj
- the object on which the field is locatedrelation
- the rdf annotation on the fieldvalue
- the current value of the field
void cifpName(java.lang.Object thiz, java.lang.Class clazz, java.lang.Class[] argTypes, java.lang.Object[] values)
thiz
- the object to be namedclazz
- the class of the constructorargTypes
- the argument types identifying the particular constructorvalues
- the values<T> T cifpObject(java.lang.Class<T> clazz, java.lang.Class[] argTypes, java.lang.Object[] values)
clazz
- the class on which the constructor is being calledargTypes
- the types of the arguments of the constructor, to help find the constructor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |