Class Expression

java.lang.Object
  extended by TreeNode
      extended by Expression
Direct Known Subclasses:
assign, block, bool_const, comp, cond, dispatch, divide, eq, int_const, isvoid, leq, let, loop, lt, mul, neg, new_, no_expr, object, plus, static_dispatch, string_const, sub, typcase

abstract class Expression
extends TreeNode

Defines simple phylum Expression


Field Summary
private  AbstractSymbol type
           
 
Fields inherited from class TreeNode
lineNumber
 
Constructor Summary
protected Expression(int lineNumber)
           
 
Method Summary
abstract  void code(java.io.PrintStream s)
           
 void dump_type(java.io.PrintStream out, int n)
           
abstract  void dump_with_types(java.io.PrintStream out, int n)
           
 AbstractSymbol get_type()
           
 Expression set_type(AbstractSymbol s)
           
 
Methods inherited from class TreeNode
copy_AbstractSymbol, copy_Boolean, copy, dump_AbstractSymbol, dump_Boolean, dump_line, dump, getLineNumber, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private AbstractSymbol type
Constructor Detail

Expression

protected Expression(int lineNumber)
Method Detail

get_type

public AbstractSymbol get_type()

set_type

public Expression set_type(AbstractSymbol s)

dump_with_types

public abstract void dump_with_types(java.io.PrintStream out,
                                     int n)

dump_type

public void dump_type(java.io.PrintStream out,
                      int n)

code

public abstract void code(java.io.PrintStream s)