org.objectweb.jac.core.rtti
Class VirtualClassItem

java.lang.Object
  extended byorg.objectweb.jac.core.rtti.MetaItem
      extended byorg.objectweb.jac.core.rtti.VirtualClassItem

public class VirtualClassItem
extends MetaItem

This class defines a meta item that corresponds to the java.lang.reflect.Class meta element.

Author:
Renaud Pawlak, Laurent Martelli

Field Summary
 
Fields inherited from class org.objectweb.jac.core.rtti.MetaItem
attrACs
 
Constructor Summary
VirtualClassItem(String name, ClassItem actualType)
          Default contructor to create a new virtual class item object.
 
Method Summary
 ClassItem getActualType()
           
 Object getAttribute(String attribute)
          Gets the value of an attribute.
 String getName()
          This method gets the name of the meta item by delegating to the actual java.lang.reflect meta item.
 String toString()
           
 
Methods inherited from class org.objectweb.jac.core.rtti.MetaItem
getAttribute, getAttribute, getAttributeAlways, getBoolean, getItemClass, registerAccessController, setAttribute, setItemClass, unsetAttribute, unsetAttributesFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VirtualClassItem

public VirtualClassItem(String name,
                        ClassItem actualType)
Default contructor to create a new virtual class item object.

Parameters:
name - the name of the virtual class to create
actualType - the existing real class it can substituted to
Method Detail

getName

public String getName()
Description copied from class: MetaItem
This method gets the name of the meta item by delegating to the actual java.lang.reflect meta item.

Specified by:
getName in class MetaItem
Returns:
the item name

getActualType

public ClassItem getActualType()

getAttribute

public Object getAttribute(String attribute)
Description copied from class: MetaItem
Gets the value of an attribute.

Overrides:
getAttribute in class MetaItem
Parameters:
attribute - the name of the attribute
Returns:
the value of the attribute

toString

public String toString()