org.rubato.scheme
Class Primitive

java.lang.Object
  extended by org.rubato.scheme.Primitive

public abstract class Primitive
extends java.lang.Object

The interface that all primitive functions must implement.

Author:
Gérard Milmeister

Constructor Summary
Primitive()
           
 
Method Summary
abstract  SExpr call(SExpr args, Evaluator eval)
          The code of the function is executed using this method with argument list args and evaluator eval.
abstract  java.lang.String getName()
          Returns the name of the function.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Primitive

public Primitive()
Method Detail

getName

public abstract java.lang.String getName()
Returns the name of the function.


call

public abstract SExpr call(SExpr args,
                           Evaluator eval)
The code of the function is executed using this method with argument list args and evaluator eval.