|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.core.rtti.MetaItem | +--org.objectweb.jac.core.rtti.MetaItemDelegate | +--org.objectweb.jac.core.rtti.MemberItem
This class defines a meta item that corresponds to a field or a method.
Field Summary | |
protected boolean |
role
|
protected ClassItem |
roleClassType
|
protected String |
roleName
|
protected String |
roleType
|
Fields inherited from class org.objectweb.jac.core.rtti.MetaItemDelegate |
delegate, parent |
Fields inherited from class org.objectweb.jac.core.rtti.MetaItem |
attrACs |
Constructor Summary | |
MemberItem(ClassItem parent)
|
|
MemberItem(Object delegate,
ClassItem parent)
|
Method Summary | |
void |
addDependentMethod(MethodItem method)
|
boolean |
equals(Object o)
Two members are equal if the class of one is a subclass of the other's class and they have the same name |
ClassItem |
getClassItem()
Returns the class item that owns the field (like getParent). |
MethodItem[] |
getDependentMethods()
Returns an array of methods whose result depend on the member. |
String |
getLongName()
Returns the name prfixed with the owning class name. |
static MemberItem |
getMemberFromFullName(String str)
A util method to get a member item reference from a full name. |
int |
getModifiers()
Get the modifiers (see java.lang.reflect) of the meta item. |
abstract Class |
getType()
This method gets the type of the meta item by delegating to the actual java.lang.reflect meta item. |
ClassItem |
getTypeItem()
|
boolean |
isRole()
Tells if this field is actually implemented by a role wrapper field. |
void |
setRole(ClassItem roleClassType,
String roleType,
String roleName)
Sets this field to be actually implemented by a field of a role wrapper. |
Methods inherited from class org.objectweb.jac.core.rtti.MetaItemDelegate |
getDelegate, getParent, setParent, toString |
Methods inherited from class org.objectweb.jac.core.rtti.MetaItem |
getAttribute, getAttribute, getAttribute, getAttributeAlways, getBoolean, getItemClass, getName, registerAccessController, setAttribute, setItemClass, unsetAttribute, unsetAttributesFor |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected boolean role
protected ClassItem roleClassType
protected String roleType
protected String roleName
Constructor Detail |
public MemberItem(ClassItem parent)
public MemberItem(Object delegate, ClassItem parent) throws InvalidDelegateException
Method Detail |
public static MemberItem getMemberFromFullName(String str) throws Exception
Exception
public abstract Class getType()
MetaItemDelegate
java.lang.reflect
meta item.
getType
in class MetaItemDelegate
public final ClassItem getTypeItem()
public final ClassItem getClassItem()
public final void addDependentMethod(MethodItem method)
getDependentMethods()
public final MethodItem[] getDependentMethods()
#addDependentField(FieldItem)
public boolean isRole()
setRole(ClassItem,String,String)
public void setRole(ClassItem roleClassType, String roleType, String roleName)
When this method is called once, the isRole()
method will return true. Moreover, the actually accessed and
modified field when using set, get, etc, is the field of the
role wrapper.
public String getLongName()
public int getModifiers()
MetaItemDelegate
getModifiers
in class MetaItemDelegate
Modifier
public boolean equals(Object o)
equals
in class Object
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |