Class 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)
    • 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 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
    • 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()
        Overrides:
        toString in class java.lang.Object