frysk.expr
Class Expression

java.lang.Object
  extended by frysk.expr.Expression

public class Expression
extends Object

An expression (well actually the expression tree).


Method Summary
 Location getLocation()
          Return the expression's location.
 Type getType()
          Determine the expressions result type.
 Value getValue()
          Evaluate the expression returning the result's Value.
 void toPrint(PrintWriter writer)
          Print the expression tree.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toPrint

public void toPrint(PrintWriter writer)
Print the expression tree.


getValue

public Value getValue()
Evaluate the expression returning the result's Value. This may have side effects - modifying the inferior.


getType

public Type getType()
Determine the expressions result type.


getLocation

public Location getLocation()
Return the expression's location.