|
|||||||||||
| 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
|
+--org.objectweb.jac.core.rtti.AbstractMethodItem
|
+--org.objectweb.jac.core.rtti.ConstructorItem
This class defines a meta item that corresponds to the
java.lang.reflect.Constructor meta element.
| Field Summary |
| Fields inherited from class org.objectweb.jac.core.rtti.MemberItem |
role, roleClassType, roleName, 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 | |
ConstructorItem(Constructor delegate,
ClassItem parent)
Default contructor to create a new constructor item object. |
|
| Method Summary | |
Constructor |
getActualConstructor()
Get the constructor represented by this constructor item. |
CollectionItem[] |
getAddedCollections()
|
String |
getFullName()
Return the full method name, ie with parameter types. |
String |
getName()
This method gets the name of the meta item by delegating to the actual java.lang.reflect meta item. |
Class[] |
getParameterTypes()
Gets the parameter types of this abstract method item. |
CollectionItem[] |
getRemovedCollections()
|
FieldItem |
getSetField()
|
Class |
getType()
This method gets the type of the meta item by delegating to the actual java.lang.reflect meta item. |
Object |
invoke(Object substance,
Object[] params)
|
boolean |
isAccessor()
|
boolean |
isAdder()
|
boolean |
isCollectionAccessor()
|
boolean |
isCollectionGetter()
|
boolean |
isCollectionSetter()
|
boolean |
isFieldGetter()
|
boolean |
isFieldSetter()
|
boolean |
isGetter()
|
boolean |
isReferenceAccessor()
|
boolean |
isReferenceGetter()
|
boolean |
isReferenceSetter()
|
boolean |
isRemover()
|
boolean |
isSetter()
|
boolean |
isWriter()
|
Object |
newInstance()
A nice way to construct a new instance when the constructor does not take any arguements (it throws an exception if it is not the case). |
Object |
newInstance(Object[] params)
Creates a new instance of the class item that is parent of this constructor item. |
static Constructor[] |
toConstructors(ConstructorItem[] constructorItems)
Transforms a constructor items array into a constructors array containing the java.lang.reflect constructors
wrapped by the constructor items. |
String |
toString()
Overloads the default method to call the delegate one. |
| Methods inherited from class org.objectweb.jac.core.rtti.MemberItem |
addDependentMethod, equals, getClassItem, getDependentMethods, getMemberFromFullName, getModifiers, getTypeItem, isRole, setRole |
| Methods inherited from class org.objectweb.jac.core.rtti.MetaItemDelegate |
getDelegate, getParent, setParent |
| 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ConstructorItem(Constructor delegate,
ClassItem parent)
throws InvalidDelegateException
delegate - the java.lang.reflect.Constructor actual
meta item| Method Detail |
public static Constructor[] toConstructors(ConstructorItem[] constructorItems)
java.lang.reflect constructors
wrapped by the constructor items.
constructorItems - the Constructor items
java.lang.reflectpublic Constructor getActualConstructor()
public String getName()
MetaItemjava.lang.reflect meta item.
getName in class MetaItempublic Class getType()
MetaItemDelegatejava.lang.reflect meta item.
getType in class MemberItem
public Object newInstance(Object[] params)
throws InstantiationException,
IllegalAccessException,
InvocationTargetException
params - the parameters needed by this constructor (see the
types)
InstantiationException
IllegalAccessException
InvocationTargetExceptiongetParameterTypes()
public Object newInstance()
throws InstantiationException,
IllegalAccessException,
InvocationTargetException
InstantiationException
IllegalAccessException
InvocationTargetExceptiongetParameterTypes()
public Object invoke(Object substance,
Object[] params)
invoke in class AbstractMethodItempublic Class[] getParameterTypes()
AbstractMethodItem
getParameterTypes in class AbstractMethodItempublic String toString()
MetaItemDelegate
toString in class AbstractMethodItempublic String getFullName()
AbstractMethodItem
getFullName in class AbstractMethodItemAbstractMethodItem.getCompactFullName()public final boolean isAdder()
isAdder in class AbstractMethodItempublic final CollectionItem[] getAddedCollections()
getAddedCollections in class AbstractMethodItempublic final CollectionItem[] getRemovedCollections()
getRemovedCollections in class AbstractMethodItempublic final boolean isSetter()
isSetter in class AbstractMethodItempublic final boolean isRemover()
isRemover in class AbstractMethodItempublic final boolean isAccessor()
isAccessor in class AbstractMethodItempublic final boolean isWriter()
isWriter in class AbstractMethodItempublic final boolean isGetter()
isGetter in class AbstractMethodItempublic final boolean isFieldGetter()
isFieldGetter in class AbstractMethodItempublic final boolean isFieldSetter()
isFieldSetter in class AbstractMethodItempublic final boolean isReferenceGetter()
isReferenceGetter in class AbstractMethodItempublic final boolean isReferenceSetter()
isReferenceSetter in class AbstractMethodItempublic final boolean isReferenceAccessor()
isReferenceAccessor in class AbstractMethodItempublic final boolean isCollectionGetter()
isCollectionGetter in class AbstractMethodItempublic final boolean isCollectionSetter()
isCollectionSetter in class AbstractMethodItempublic final boolean isCollectionAccessor()
isCollectionAccessor in class AbstractMethodItempublic final FieldItem getSetField()
getSetField in class AbstractMethodItem
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||