harpoon.Tools.PatMat
Class Spec.LeafVisitor

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

public abstract static class Spec.LeafVisitor
extends Object

Visitor class for traversing a set of Spec.Leaf objects and performing some action depending on the type of Spec.Leaf visited. Subclasses should implement a visit method for generic Spec.Leafs (ed. note: Leaves?) and also override the visit method for subclasses of Spec.Leaf that the subclass cares about.

See Also:
"Design Patterns pgs. 331-344"

Constructor Summary
Spec.LeafVisitor()
           
 
Method Summary
abstract  void visit(Spec.Leaf l)
           
 void visit(Spec.LeafId l)
           
 void visit(Spec.LeafNull l)
           
 void visit(Spec.LeafNumber l)
           
 void visit(Spec.LeafOp l)
           
 void visit(Spec.LeafSegType l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spec.LeafVisitor

public Spec.LeafVisitor()
Method Detail

visit

public abstract void visit(Spec.Leaf l)

visit

public void visit(Spec.LeafId l)

visit

public void visit(Spec.LeafOp l)

visit

public void visit(Spec.LeafNull l)

visit

public void visit(Spec.LeafNumber l)

visit

public void visit(Spec.LeafSegType l)