spiglet.util
Class SpigletTreeCreator

java.lang.Object
  extended by spiglet.util.SpigletTreeCreator

public final class SpigletTreeCreator
extends java.lang.Object

A utility class to quickly create instances of a Spiglet subtree.

Author:
Santoso Wijaya

Constructor Summary
SpigletTreeCreator()
           
 
Method Summary
static Exp createCallExp(SimpleExp exp, NodeListOptional temps)
           
static Exp createHAllocateExp(SimpleExp exp)
           
static SimpleExp createLabelExp(SpigletLabel label)
           
static SimpleExp createTempExp(SpigletTemp temp)
           
static Exp wrapExp(SimpleExp simple)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpigletTreeCreator

public SpigletTreeCreator()
Method Detail

createCallExp

public static Exp createCallExp(SimpleExp exp,
                                NodeListOptional temps)

createHAllocateExp

public static Exp createHAllocateExp(SimpleExp exp)

wrapExp

public static Exp wrapExp(SimpleExp simple)

createTempExp

public static SimpleExp createTempExp(SpigletTemp temp)

createLabelExp

public static SimpleExp createLabelExp(SpigletLabel label)