de.dante.extex.interpreter.expression
Interface UnaryFunction


public interface UnaryFunction

This interface describes an operation object with a single argument.

Version:
$Revision: 1.1 $
Author:
Gerd Neugebauer

Method Summary
 EType apply(EType accumulator)
          Compute the function value for the argument stored in the accumulator and return in the accumulator overwriting the value stored therein.
 

Method Detail

apply

public EType apply(EType accumulator)
            throws InterpreterException
Compute the function value for the argument stored in the accumulator and return in the accumulator overwriting the value stored therein.

Parameters:
accumulator - the accumulator to receive the result
Returns:
the operation result
Throws:
InterpreterException - in case of an error