org.excel4j.reflect
Class ReflectFunctionAdaptor

java.lang.Object
  extended by org.excel4j.reflect.ReflectFunctionAdaptor
All Implemented Interfaces:
Function

public class ReflectFunctionAdaptor
extends java.lang.Object
implements Function

Reflection based function.


Constructor Summary
ReflectFunctionAdaptor(java.lang.Object object, java.lang.reflect.Method method, FunctionAttributes attributes, XLObjectConverter argMapper)
           
 
Method Summary
 XLObject execute(XLObject[] args)
          Execute the function.
 Argument[] getArguments()
          Get the arguments.
 java.lang.String getCategory()
          Get the function category.
 java.lang.String getHelpText()
          Get the help information.
 java.lang.String getName()
          Get the function name.
 boolean isThreadSafe()
          Indicates if a method is thread-safe.
 boolean isVolatile()
          Indicates if the function is volatile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectFunctionAdaptor

public ReflectFunctionAdaptor(java.lang.Object object,
                              java.lang.reflect.Method method,
                              FunctionAttributes attributes,
                              XLObjectConverter argMapper)
Parameters:
object -
method -
pne -
argHelp -
argNames -
listeners -
Method Detail

execute

public XLObject execute(XLObject[] args)
Description copied from interface: Function
Execute the function.

Specified by:
execute in interface Function
Parameters:
args - The args.
Returns:
XLObject (result).

getArguments

public Argument[] getArguments()
Description copied from interface: Function
Get the arguments.

Specified by:
getArguments in interface Function
Returns:
Argument[].

getCategory

public java.lang.String getCategory()
Description copied from interface: Function
Get the function category.

Specified by:
getCategory in interface Function
Returns:
String.

getHelpText

public java.lang.String getHelpText()
Description copied from interface: Function
Get the help information.

Specified by:
getHelpText in interface Function
Returns:
String.

getName

public java.lang.String getName()
Description copied from interface: Function
Get the function name.

Specified by:
getName in interface Function
Returns:
String.

isVolatile

public boolean isVolatile()
Description copied from interface: Function
Indicates if the function is volatile.

Specified by:
isVolatile in interface Function
Returns:
boolean.

isThreadSafe

public boolean isThreadSafe()
Description copied from interface: Function
Indicates if a method is thread-safe.

Specified by:
isThreadSafe in interface Function
Returns:
boolean.