org.hava.engine
Interface HFunction


public interface HFunction

A native (Java) function that may be invoked from Hava source. Several functions are predefined in Hava, and others may be registered with the Engine. An external registered function must implement this interface.


Method Summary
 HValue evaluate(HValue args)
          Evaluates this function, given a list of arguments.
 java.lang.String getIdentifier()
          Returns the name of this function as it would appear in a Hava invocation, for example, "cosh".
 

Method Detail

evaluate

HValue evaluate(HValue args)
                throws HException
Evaluates this function, given a list of arguments.

Throws:
HException

getIdentifier

java.lang.String getIdentifier()
Returns the name of this function as it would appear in a Hava invocation, for example, "cosh".