harpoon.Tools.PatMat
Class Spec.Detail
java.lang.Object
harpoon.Tools.PatMat.Spec.Detail
- Direct Known Subclasses:
- Spec.DetailExtra, Spec.DetailPredicate, Spec.DetailWeight
- Enclosing class:
- Spec
public abstract static class Spec.Detail
- extends Object
A detail is an abstract representation for a piece of data
about the Instruction Pattern or Rule
. Details
include predicates, speed-costs, size-costs...
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Spec.Detail
public Spec.Detail()
accept
public abstract void accept(Spec.DetailVisitor 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.Detail
.
effects: Calls v.visit(this)
.
- See Also:
- "Design Patterns pgs. 331-344"