piglet.util
Class PigletTreeCreator

java.lang.Object
  extended by piglet.util.PigletTreeCreator

public final class PigletTreeCreator
extends java.lang.Object

A utility class to quickly create a Piglet subtree.

Author:
Santoso Wijaya

Constructor Summary
PigletTreeCreator()
           
 
Method Summary
static Exp createCallExp(Exp funcExp, java.util.List<Exp> paramExps)
           
static Exp createHAllocateExp(Exp exp)
           
static Exp createIntegerLiteralExp(java.lang.String literal)
           
static Exp createLabelExp(PigletLabel label)
           
static Exp createLtExp(Exp left, Exp right)
           
static Exp createPlusExp(Exp left, Exp right)
           
static Exp createStmtExp(StmtList context, Exp retExp)
           
static Exp createTempExp(PigletTemp temp)
           
static Exp createTimesExp(Exp left, Exp right)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PigletTreeCreator

public PigletTreeCreator()
Method Detail

createLtExp

public static Exp createLtExp(Exp left,
                              Exp right)

createPlusExp

public static Exp createPlusExp(Exp left,
                                Exp right)

createTimesExp

public static Exp createTimesExp(Exp left,
                                 Exp right)

createStmtExp

public static Exp createStmtExp(StmtList context,
                                Exp retExp)

createLabelExp

public static Exp createLabelExp(PigletLabel label)

createIntegerLiteralExp

public static Exp createIntegerLiteralExp(java.lang.String literal)

createTempExp

public static Exp createTempExp(PigletTemp temp)

createHAllocateExp

public static Exp createHAllocateExp(Exp exp)

createCallExp

public static Exp createCallExp(Exp funcExp,
                                java.util.List<Exp> paramExps)