|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectApplication
public class Application
An Application is an expression that when evaluated applies a function value (found by evaluating the operator) to some argument value (found by evaluating the operand).
Constructor Summary | |
---|---|
Application(Expression operator,
Expression operand)
Create an Application with the specified components. |
Method Summary | |
---|---|
Value |
eval(Environment env)
Evaluate this expression. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Application(Expression operator, Expression operand)
operator
- the expression which computes the functionoperand
- the expression which computes the argumentMethod Detail |
---|
public Value eval(Environment env)
Expression
eval
in interface Expression
env
- the environment in which the expression should be evaluated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |