com.singularsys.jep.misc.nullwrapper
Class NullWrapperFunctionFactory

java.lang.Object
  extended by com.singularsys.jep.misc.nullwrapper.NullWrapperFunctionFactory

public class NullWrapperFunctionFactory
extends java.lang.Object

A static factory to create the appropriate type of wrapped function.

Author:
Richard Morris

Constructor Summary
NullWrapperFunctionFactory()
           
 
Method Summary
static PostfixMathCommandI getWrappedFunction(PostfixMathCommandI pfmc)
          Gets a wrapped function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullWrapperFunctionFactory

public NullWrapperFunctionFactory()
Method Detail

getWrappedFunction

public static PostfixMathCommandI getWrappedFunction(PostfixMathCommandI pfmc)
Gets a wrapped function. This method handles functions of type UnaryFunction, BinaryFunction, NaryFunction, NaryBinaryFunction and general PostfixMathCommand. It does not wrap CallbackEvaluationI functions which must be handled separately.

Parameters:
pfmc - the function to be wrapped
Returns:
the wrapped function or null if the argument is a CallbackEvaluationI, or the function itself if it has no arguments


Copyright © 2010 Singular Systems http://www.singularsys.com/jep