harpoon.Tools.PatMat
Class Spec.StmSeq

java.lang.Object
  extended by harpoon.Tools.PatMat.Spec.Stm
      extended by harpoon.Tools.PatMat.Spec.StmSeq
Enclosing class:
Spec

public static class Spec.StmSeq
extends Spec.Stm

Extension of Spec.Stm representing a sequence of statements to be executed in order.

See Also:
SEQ

Field Summary
 Spec.Stm s1
          First statement to execute.
 Spec.Stm s2
          Second statement to execute.
 
Constructor Summary
Spec.StmSeq(Spec.Stm s1, Spec.Stm s2)
          Constructs a new Spec.StmSeq.
 
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

s1

public final Spec.Stm s1
First statement to execute.


s2

public final Spec.Stm s2
Second statement to execute.

Constructor Detail

Spec.StmSeq

public Spec.StmSeq(Spec.Stm s1,
                   Spec.Stm s2)
Constructs a new Spec.StmSeq.

Parameters:
s1 - First statement
s2 - Second statement
Method Detail

accept

public void accept(Spec.StmVisitor v)
Description copied from class: Spec.Stm
Applies v's visit method to this. This is effectively a gludge to emulate multiple dispatch. Must be reimplemented by all subclasses of Spec.Stm.
effects: Calls v.visit(this).

Specified by:
accept in class Spec.Stm
See Also:
"Design Patterns pgs. 331-344"

build

public Spec.Stm build(Spec.ExpList kids)
Description copied from class: Spec.Stm
Creates a new Spec.Stm similar to this one, using the provided Spec.ExpList of children.

Specified by:
build in class Spec.Stm

kids

public Spec.ExpList kids()
Description copied from class: Spec.Stm
Creates an Spec.ExpList of children of this Spec.Stm.

Specified by:
kids in class Spec.Stm

toString

public String toString()
Overrides:
toString in class Object