piglet.util
Class PigletTreeCreator
java.lang.Object
piglet.util.PigletTreeCreator
public final class PigletTreeCreator
- extends java.lang.Object
A utility class to quickly create a Piglet subtree.
- Author:
- Santoso Wijaya
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PigletTreeCreator
public PigletTreeCreator()
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)