org.excel4j.reflect
Class FunctionNamespacer

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

public class FunctionNamespacer
extends java.lang.Object
implements Function

A decorator for a function that adds a namespace.


Constructor Summary
FunctionNamespacer(Function function, java.lang.String namespace)
          Creates a new FunctionNamespacer object.
 
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

FunctionNamespacer

public FunctionNamespacer(Function function,
                          java.lang.String namespace)
Creates a new FunctionNamespacer object.

Parameters:
function. -
namespace. -
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.