Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jac.core.rtti
Class MetaItemDelegate  view MetaItemDelegate download MetaItemDelegate.java

java.lang.Object
  extended byjac.core.rtti.MetaItem
      extended byjac.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:

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.reflect meta 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 null in 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.reflect meta item.


toString

public java.lang.String toString()
Overloads the default method to call the delegate one.