|
|||||||||
| Home >> All >> jac >> core >> [ rtti overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
jac.core.rtti
Class MetaItemDelegate

java.lang.Objectjac.core.rtti.MetaItem
jac.core.rtti.MetaItemDelegate
- Direct Known Subclasses:
- AbstractMethodItem, ClassItem, FieldItem, MemberItem
- public abstract class MetaItemDelegate
- extends MetaItem
This class defines the super class for all the meta items whithin the rtti aspect.
A meta item encapsulates a java.lang.reflect item so
that the user of this item can add extra informations
(attributes). Typically this feature can be used by an aspect to
tag an element of the model to react to this tag later on.
Examples:
- A persistence aspect can tag some field persistent, add methods
that change the object states even if they do not fit naming
conventions...
- A GUI can tag a given field to be invisible or a class to be displayed by a special view (eg a given Swing component)...
- Version:
- 0.8.1
| Field Summary | |
protected java.lang.Object |
delegate
Stores the corresponding jav.lang.reflect
meta item. |
protected MetaItemDelegate |
parent
Stores the parent of this meta item |
| Fields inherited from class jac.core.rtti.MetaItem |
attrACs |
| Constructor Summary | |
MetaItemDelegate(java.lang.Object delegate)
Default contructor to create a new meta item object. |
|
| Method Summary | |
int |
getModifiers()
Get the modifiers (see java.lang.reflect) of the meta item. |
MetaItemDelegate |
getParent()
Gets the parent class item of this meta item. |
abstract java.lang.Class |
getType()
This method gets the type of the meta item by delegating to the actual java.lang.reflect meta item. |
void |
setParent(MetaItemDelegate parent)
Sets the parent. |
java.lang.String |
toString()
Overloads the default method to call the delegate one. |
| Methods inherited from class jac.core.rtti.MetaItem |
getAttribute, getCurAC, getName, isRegisteredAC, setAttribute, unsetAttribute, unsetAttributesFor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
delegate
protected java.lang.Object delegate
- Stores the corresponding
jav.lang.reflectmeta item.
parent
protected MetaItemDelegate parent
- Stores the parent of this meta item
| Constructor Detail |
MetaItemDelegate
public MetaItemDelegate(java.lang.Object delegate) throws InvalidDelegateException
- Default contructor to create a new meta item object.
| Method Detail |
setParent
public final void setParent(MetaItemDelegate parent) throws InvalidParentException
- Sets the parent.
For any type of meta item, the only possible type of the parent is a class item. For a class item, the parent is
nullin most cases (except in the case of inner-classes).
getParent
public final MetaItemDelegate getParent()
- Gets the parent class item of this meta item.
getModifiers
public int getModifiers()
- Get the modifiers (see java.lang.reflect) of the meta item.
getType
public abstract java.lang.Class getType()
- This method gets the type of the meta item by delegating to the
actual
java.lang.reflectmeta item.
toString
public java.lang.String toString()
- Overloads the default method to call the delegate one.
|
|||||||||
| Home >> All >> jac >> core >> [ rtti overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC