fmrisc.AST
Interface Expression

All Superinterfaces:
AST
All Known Implementing Classes:
ExpressionBase, Number, Reference

public interface Expression
extends AST

Interface to expressions (terms and formulas).


Method Summary
 Expression instantiate()
          return copy of AST with value references instantiated by the substitutions set in the corresponding declaration identifiers
 void printPriority(int treshold, java.io.PrintWriter out)
          print expression, use parentheses if priority is greater than treshold
 
Methods inherited from interface fmrisc.AST.AST
print, printCore, printParens, toString
 

Method Detail

printPriority

public void printPriority(int treshold,
                          java.io.PrintWriter out)
print expression, use parentheses if priority is greater than treshold

Parameters:
treshold - priority level of enclosing expression
out - writer to print expression on

instantiate

public Expression instantiate()
return copy of AST with value references instantiated by the substitutions set in the corresponding declaration identifiers

Returns:
the instantiated copy