harpoon.IR.Tree
Class Translation

java.lang.Object
  extended by harpoon.IR.Tree.Translation

public abstract class Translation
extends Object

Translation is an empty class wrapper for various special context-sensitive Tree.Exp wrappers. Boolean expressions are often best compiled different ways depending on whether they are used in a direct assignment or as the argument to a conditional branch. Translation.Exp is a closure object that allows this sort of conditional context-sensitive expression resolution.

Version:
$Id: Translation.java,v 1.4 2002/04/10 03:05:46 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Nested Class Summary
static class Translation.Cx
          The Translation.Cx abstract class specifies how to evaluate a conditional as an expression or as a side-effects-only statement.
static class Translation.Ex
          The Translation.Ex class is a Translation.Exp representing a value expression.
static class Translation.Exp
          The Translation.Exp class represents an expression that might be used in several different ways: as a value, as a branch condition, or as code to be executed for side-effects only.
static class Translation.Nx
          The Translation.Nx class is a Translation.Exp representing a statement.
 
Constructor Summary
Translation()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Translation

public Translation()