Class ASTMaxNode

java.lang.Object
   |
   +----SimpleNode
           |
           +----ASTMaxNode

public class ASTMaxNode
extends SimpleNode
A node on the parse tree that calculates the maximum of the two values below it.


Constructor Index

 o ASTMaxNode(int)

Method Index

 o interpret()
Interpret (evaluate) the two children of this node and replace the top of the stack with the maximum value.

Constructors

 o ASTMaxNode
 public ASTMaxNode(int id)

Methods

 o interpret
 public void interpret()
Interpret (evaluate) the two children of this node and replace the top of the stack with the maximum value.

Overrides:
interpret in class SimpleNode