tree
Class MOVE

java.lang.Object
  extended by tree.Stm
      extended by tree.MOVE

public class MOVE
extends Stm

Esta árvore representa a operação de atribuição de valores ("move"). Possui dois nós filhos, origem e destino.


Constructor Summary
MOVE(Exp d, Exp s)
           
 
Method Summary
 Stm build(List<Exp> kids)
           
 Exp getDestination()
           
 Exp getSource()
           
 List<Exp> kids()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MOVE

public MOVE(Exp d,
            Exp s)
Method Detail

kids

public List<Exp> kids()
Specified by:
kids in class Stm

build

public Stm build(List<Exp> kids)
Specified by:
build in class Stm

getSource

public Exp getSource()
Returns:
Sub-árvore que contém a expressão cujo resultado será atribuído ao destino.

getDestination

public Exp getDestination()
Returns:
Sub-árvore que representa o valor destino. O nó imediatamente abaixo deste poderá ser um TEMP ou MEM.