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 booleancanInvokeOn(java.lang.Class[] argTypes)Whether this method can be invoke on the given argumentsjava.lang.Class[]getArgTypes()Return the argTypesjava.lang.StringgetName()Return the namejava.lang.StringtoString()-
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:
canInvokeOnin interfaceInvocableFunction- Returns:
- true if can invoke on the arguments
-
getArgTypes
public final java.lang.Class[] getArgTypes()
Return the argTypes- Specified by:
getArgTypesin interfaceInvocableFunction- Returns:
- the argTypes.
-
getName
public final java.lang.String getName()
Return the name- Specified by:
getNamein interfaceInvocableFunction- Returns:
- the name.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-