de.intarsys.tools.objectmodel
Class FunctorMethod
java.lang.Object
de.intarsys.tools.objectmodel.Member
de.intarsys.tools.objectmodel.FunctorMethod
- All Implemented Interfaces:
- IMember, IMethod, IReturnTypeInfo, ISignatureInfo, IMethodHandler
public class FunctorMethod
- extends Member
- implements IMethod
The wrapper around an IFunctor to make it an IMethod.
FunctorMethod
public FunctorMethod(String name,
IFunctor functor)
getName
public String getName()
- Description copied from interface:
IMember
- The name of the
IMember.
- Specified by:
getName in interface IMember- Specified by:
getName in interface ISignatureInfo
- Returns:
- The name of the
IMember.
getParameterTypes
public IClass[] getParameterTypes()
- Specified by:
getParameterTypes in interface ISignatureInfo
getReturnType
public IClass getReturnType()
- Description copied from interface:
IReturnTypeInfo
- The declared type of the executable.
- Specified by:
getReturnType in interface IReturnTypeInfo
- Returns:
- The declared type of the field.
invoke
public Object invoke(Object receiver,
IArgs args)
throws MethodInvocationException
- Description copied from interface:
IMethodHandler
- Execute the implementation associated with this method in the context of
the
receiver and return the result.
- Specified by:
invoke in interface IMethodHandler
- Parameters:
receiver - The object implementing the method.args - The arguments for the invocation.
- Returns:
- The result of the invocation.
- Throws:
MethodInvocationException
Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.