|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 itemMethod Detail |
public static Constructor[] toConstructors(ConstructorItem[] constructorItems)
java.lang.reflect
constructors
wrapped by the constructor items.
constructorItems
- the Constructor items
java.lang.reflect
public Constructor getActualConstructor()
public String getName()
MetaItem
java.lang.reflect
meta item.
getName
in class MetaItem
public Class getType()
MetaItemDelegate
java.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
InvocationTargetException
getParameterTypes()
public Object newInstance() throws InstantiationException, IllegalAccessException, InvocationTargetException
InstantiationException
IllegalAccessException
InvocationTargetException
getParameterTypes()
public Object invoke(Object substance, Object[] params)
invoke
in class AbstractMethodItem
public Class[] getParameterTypes()
AbstractMethodItem
getParameterTypes
in class AbstractMethodItem
public String toString()
MetaItemDelegate
toString
in class AbstractMethodItem
public String getFullName()
AbstractMethodItem
getFullName
in class AbstractMethodItem
AbstractMethodItem.getCompactFullName()
public final boolean isAdder()
isAdder
in class AbstractMethodItem
public final CollectionItem[] getAddedCollections()
getAddedCollections
in class AbstractMethodItem
public final CollectionItem[] getRemovedCollections()
getRemovedCollections
in class AbstractMethodItem
public final boolean isSetter()
isSetter
in class AbstractMethodItem
public final boolean isRemover()
isRemover
in class AbstractMethodItem
public final boolean isAccessor()
isAccessor
in class AbstractMethodItem
public final boolean isWriter()
isWriter
in class AbstractMethodItem
public final boolean isGetter()
isGetter
in class AbstractMethodItem
public final boolean isFieldGetter()
isFieldGetter
in class AbstractMethodItem
public final boolean isFieldSetter()
isFieldSetter
in class AbstractMethodItem
public final boolean isReferenceGetter()
isReferenceGetter
in class AbstractMethodItem
public final boolean isReferenceSetter()
isReferenceSetter
in class AbstractMethodItem
public final boolean isReferenceAccessor()
isReferenceAccessor
in class AbstractMethodItem
public final boolean isCollectionGetter()
isCollectionGetter
in class AbstractMethodItem
public final boolean isCollectionSetter()
isCollectionSetter
in class AbstractMethodItem
public final boolean isCollectionAccessor()
isCollectionAccessor
in class AbstractMethodItem
public final FieldItem getSetField()
getSetField
in class AbstractMethodItem
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |