harpoon.Tools.PatMat
Class Spec.Leaf
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Spec.Leaf
public Spec.Leaf()
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"