Package org.onemind.commons.invoke
Class AbstractInvocableFunction
- java.lang.Object
-
- org.onemind.commons.invoke.AbstractInvocableFunction
-
- All Implemented Interfaces:
InvocableFunction
public abstract class AbstractInvocableFunction extends java.lang.Object implements InvocableFunction
An abstract implementation of InvocableFunction- Version:
- $Id: AbstractInvocableFunction.java,v 1.6 2005/01/24 05:51:54 thlee Exp $ $Name: $
- Author:
- TiongHiang Lee (thlee@onemindsoft.org)
-
-
Constructor Summary
Constructors Constructor Description AbstractInvocableFunction(java.lang.String name)
ConstructorAbstractInvocableFunction(java.lang.String name, java.lang.Class[] argTypes)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canInvokeOn(java.lang.Class[] argTypes)
Whether this method can be invoke on the given argumentsjava.lang.Class[]
getArgTypes()
Return the argTypesjava.lang.String
getName()
Return the namejava.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.onemind.commons.invoke.InvocableFunction
invoke
-
-
-
-
Constructor Detail
-
AbstractInvocableFunction
public AbstractInvocableFunction(java.lang.String name)
Constructor- Parameters:
name
- the name
-
AbstractInvocableFunction
public AbstractInvocableFunction(java.lang.String name, java.lang.Class[] argTypes)
Constructor- Parameters:
name
- the nameargTypes
- the argument types
-
-
Method Detail
-
canInvokeOn
public boolean canInvokeOn(java.lang.Class[] argTypes)
Whether this method can be invoke on the given arguments- Specified by:
canInvokeOn
in interfaceInvocableFunction
- Returns:
- true if can invoke on the arguments
-
getArgTypes
public final java.lang.Class[] getArgTypes()
Return the argTypes- Specified by:
getArgTypes
in interfaceInvocableFunction
- Returns:
- the argTypes.
-
getName
public final java.lang.String getName()
Return the name- Specified by:
getName
in interfaceInvocableFunction
- Returns:
- the name.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-