ix.util.lisp
Class Interpreter.AbstractEnv

java.lang.Object
  extended by ix.util.lisp.Interpreter.AbstractEnv
All Implemented Interfaces:
Interpreter.Env
Direct Known Subclasses:
Interpreter.GlobalEnv, Interpreter.LexicalEnv
Enclosing class:
Interpreter

protected abstract class Interpreter.AbstractEnv
extends java.lang.Object
implements Interpreter.Env

An implementation of Env that supplies some utility methods. It is not a static class and is therefore always associated with an Interpreter. This makes it a way to access some properies of the interpreter, in particular its default value and isTrue method.


Constructor Summary
Interpreter.AbstractEnv()
           
 
Method Summary
 java.lang.Object defaultValue()
          Returns its Interpreter's default value.
 boolean isTrue(java.lang.Object value)
          Calls its Interpreter's isTrue method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ix.util.lisp.Interpreter.Env
assign, bind, lookup
 

Constructor Detail

Interpreter.AbstractEnv

public Interpreter.AbstractEnv()
Method Detail

defaultValue

public java.lang.Object defaultValue()
Returns its Interpreter's default value.

Specified by:
defaultValue in interface Interpreter.Env

isTrue

public boolean isTrue(java.lang.Object value)
Calls its Interpreter's isTrue method.

Specified by:
isTrue in interface Interpreter.Env