org.objectweb.jac.core.rtti
Class MixinMethodItem

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.MethodItem
                                |
                                +--org.objectweb.jac.core.rtti.MixinMethodItem

public class MixinMethodItem
extends MethodItem


Field Summary
 
Fields inherited from class org.objectweb.jac.core.rtti.MethodItem
emptyArray
 
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
MixinMethodItem(Method method, ClassItem parent)
           
 
Method Summary
 Object getParameter(Object[] params, int i)
           
 Class[] getParameterTypes()
          Gets the parameter types of this abstract method item.
 Object invoke(Object object, Object[] parameters)
          Invoke as a static method, prepending object at the beginning of parameters.
 void setParameter(Object[] params, int i, Object value)
           
 
Methods inherited from class org.objectweb.jac.core.rtti.MethodItem
addAccessedField, addAddedCollection, addRemovedCollection, getActualMethod, getAddedCollections, getCollectionIndexArgument, getCollectionItemArgument, getName, getOrgMethod, getRemovedCollection, getRemovedCollections, getReturnedField, getSetField, getType, hasAccessedReferences, hasAddedCollections, hasRemovedCollections, invokeStatic, invokeWithInit, isAccessor, isAdder, isCollectionAccessor, isCollectionGetter, isCollectionSetter, isFieldGetter, isFieldSetter, isGetter, isJacMethod, isReferenceAccessor, isReferenceGetter, isReferenceSetter, isRemover, isSetter, isWriter, removeAddedCollection, removeRemovedCollection, setAddedCollections, setCollectionIndexArgument, setCollectionItemArgument, setRemovedCollections, setReturnedField, setSetField, toMethods
 
Methods inherited from class org.objectweb.jac.core.rtti.AbstractMethodItem
addModifiedCollection, addWrittenField, getAccessedCollections, getAccessedFields, getAccessedReferences, getAddedCollection, getAttribute, getCompactFullName, getConcreteMethod, getFullName, getFullName, getLongName, getModifiedCollections, getOwningClass, getParameterCount, getParameterTypeItem, getRealFullName, getTypedName, getWrittenFields, hasModifiedCollections, hasWrittenFields, isModifier, isStatic, removeAccessedField, removeWrittenField, setAccessedFields, setWrittenFields, toString
 
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

MixinMethodItem

public MixinMethodItem(Method method,
                       ClassItem parent)
                throws InvalidDelegateException
Method Detail

invoke

public Object invoke(Object object,
                     Object[] parameters)
Invoke as a static method, prepending object at the beginning of parameters.

Overrides:
invoke in class MethodItem
Parameters:
object - a class this method belongs to intance
parameters - the values of the parameters to invoke this method with

getParameterTypes

public Class[] getParameterTypes()
Description copied from class: AbstractMethodItem
Gets the parameter types of this abstract method item.

Overrides:
getParameterTypes in class MethodItem
Returns:
the actual method parameter types

setParameter

public void setParameter(Object[] params,
                         int i,
                         Object value)
Overrides:
setParameter in class AbstractMethodItem

getParameter

public Object getParameter(Object[] params,
                           int i)
Overrides:
getParameter in class AbstractMethodItem