All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Jaja.SpecialOperator

java.lang.Object
   |
   +----Jaja.Jaja
           |
           +----Jaja.Value
                   |
                   +----Jaja.Symbol
                           |
                           +----Jaja.SpecialOperator

public abstract class SpecialOperator
extends Symbol
This is the class of special operator names. These are symbols with a perform method that define how they handle such a special form. This schema is extendible, you just have to create a subclass with a perform method and to register this symbol in the oblist of symbols.


Constructor Index

 o SpecialOperator(String)

Method Index

 o eval(Environment, WorldAble)
Special operators must support a perform method.
 o perform(Value, Environment, WorldAble)

Constructors

 o SpecialOperator
 protected SpecialOperator(String n)

Methods

 o eval
 public Value eval(Environment r,
                   WorldAble world)
Special operators must support a perform method. The >eval method is also refined to provoke an error since a special operator cannot be a legal variable.

Overrides:
eval in class Symbol
 o perform
 public abstract Value perform(Value parameters,
                               Environment r,
                               WorldAble world)

All Packages  Class Hierarchy  This Package  Previous  Next  Index