org.onemind.commons.invoke
Class AbstractInvocableFunction

java.lang.Object
  extended byorg.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
AbstractInvocableFunction(java.lang.String name)
          Constructor
AbstractInvocableFunction(java.lang.String name, java.lang.Class[] argTypes)
          Constructor
 
Method Summary
 boolean canInvokeOn(java.lang.Class[] argTypes)
          Whether this method can be invoke on the given arguments
 java.lang.Class[] getArgTypes()
          Return the argTypes
 java.lang.String getName()
          Return the name
 java.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 name
argTypes - 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 interface InvocableFunction
Returns:
true if can invoke on the arguments

getArgTypes

public final java.lang.Class[] getArgTypes()
Return the argTypes

Specified by:
getArgTypes in interface InvocableFunction
Returns:
the argTypes.

getName

public final java.lang.String getName()
Return the name

Specified by:
getName in interface InvocableFunction
Returns:
the name.

toString

public java.lang.String toString()



Copyright © 2004-2005 . All Rights Reserved.