jfun.yan.xml
Interface NutsFunction

All Superinterfaces:
LocationAware, java.io.Serializable
All Known Implementing Classes:
DelegatingNutsFunction, SynchronizedNutsFunction

public interface NutsFunction
extends LocationAware, java.io.Serializable

A NutsFunction is the result of the <function> tag in the Nuts configuration file.

Author:
Ben Yu Nov 23, 2005 1:41:45 AM

Method Summary
 java.lang.Object call(java.lang.Object[] args)
          Call the function with arguments.
 java.lang.String getName()
          Get the function name.
 int getParameterCount()
          Get the number of parameters expected.
 java.lang.String[] getParameterNames()
          Get the names of the parameters.
 java.lang.Class getReturnType()
          Get the return type of the function.
 
Methods inherited from interface jfun.yan.xml.LocationAware
getLocation
 

Method Detail

call

java.lang.Object call(java.lang.Object[] args)
Call the function with arguments.

Parameters:
args - the arguments.
Returns:
the return value.

getName

java.lang.String getName()
Get the function name.

Returns:
the name.

getParameterCount

int getParameterCount()
Get the number of parameters expected.


getReturnType

java.lang.Class getReturnType()
Get the return type of the function. Null is returned if unknown.


getParameterNames

java.lang.String[] getParameterNames()
Get the names of the parameters.