harpoon.Tools.PatMat
Class Spec.Leaf

java.lang.Object
  extended by harpoon.Tools.PatMat.Spec.Leaf
Direct Known Subclasses:
Spec.LeafId, Spec.LeafNull, Spec.LeafNumber, Spec.LeafOp, Spec.LeafSegType
Enclosing class:
Spec

public abstract static class Spec.Leaf
extends Object

Abstract representation of leaves in the instruction pattern.


Constructor Summary
Spec.Leaf()
           
 
Method Summary
abstract  void accept(Spec.LeafVisitor v)
          Applies v's visit method to this.
 String toBop()
           
 String toUop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spec.Leaf

public Spec.Leaf()
Method Detail

toBop

public String toBop()

toUop

public String toUop()

accept

public abstract void accept(Spec.LeafVisitor v)
Applies v's visit method to this. This is effectively a gludge to emulate multiple dispatch. Must be reimplemented by all subclasses of Spec.Leaf.
effects: Calls v.visit(this).

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