harpoon.Tools.PatMat
Class Spec.LeafOp
java.lang.Object
harpoon.Tools.PatMat.Spec.Leaf
harpoon.Tools.PatMat.Spec.LeafOp
- Enclosing class:
- Spec
public static class Spec.LeafOp
- extends Spec.Leaf
Extension of Spec.Leaf representing an opcode
for Uop and/or Bop.
op
public final int op
Spec.LeafOp
public Spec.LeafOp(int op)
- Constructs a new
Spec.LeafOp.
- Parameters:
op - Enumerated opcode.
toString
public String toString()
- Overrides:
toString in class Object
toBop
public String toBop()
- Overrides:
toBop in class Spec.Leaf
toUop
public String toUop()
- Overrides:
toUop in class Spec.Leaf
accept
public 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).
- Specified by:
accept in class Spec.Leaf
- See Also:
- "Design Patterns pgs. 331-344"