|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Tools.PatMat.Spec.Stm
harpoon.Tools.PatMat.Spec.StmMove
public static class Spec.StmMove
Extension of Spec.Stm
representing an expression
which moves a value from one place to another.
MOVE
Field Summary | |
---|---|
Spec.Exp |
dst
Expression yielding the destination of this move. |
Spec.Exp |
src
Expression yielding the source data of this move. |
Spec.TypeSet |
types
The set of Types that src and dst
may be (they will always be the same type). |
Constructor Summary | |
---|---|
Spec.StmMove(Spec.TypeSet types,
Spec.Exp dst,
Spec.Exp src)
Constructs a new Spec.StmMove . |
Method Summary | |
---|---|
void |
accept(Spec.StmVisitor v)
Applies v 's visit method to
this . |
Spec.Stm |
build(Spec.ExpList kids)
Creates a new Spec.Stm similar to this one,
using the provided Spec.ExpList of children. |
Spec.ExpList |
kids()
Creates an Spec.ExpList of children of this
Spec.Stm . |
String |
toString()
|
Methods inherited from class harpoon.Tools.PatMat.Spec.Stm |
---|
canBeRootOfData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Spec.TypeSet types
src
and dst
may be (they will always be the same type).
public final Spec.Exp dst
public final Spec.Exp src
Constructor Detail |
---|
public Spec.StmMove(Spec.TypeSet types, Spec.Exp dst, Spec.Exp src)
Spec.StmMove
.
dst
- Destination expression.src
- Source expression.Method Detail |
---|
public void accept(Spec.StmVisitor v)
Spec.Stm
v
's visit
method to
this
. This is effectively a gludge to
emulate multiple dispatch. Must be reimplemented
by all subclasses of Spec.Stm
.
v.visit(this)
.
accept
in class Spec.Stm
public Spec.Stm build(Spec.ExpList kids)
Spec.Stm
Spec.Stm
similar to this one,
using the provided Spec.ExpList
of children.
build
in class Spec.Stm
public Spec.ExpList kids()
Spec.Stm
Spec.ExpList
of children of this
Spec.Stm
.
kids
in class Spec.Stm
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |