@User @Runtime public class BaseMatcher extends Object
visitor class as it is
capable of identifying the class of the visitee dynamically.
For this "double dispatch" is used.
| Constructor and Description |
|---|
BaseMatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
action(TypedPCData pcdata)
Semantic execution; can be overridden by the user when defining a particular visitor.
|
void |
match(Object o)
Generic entry point, can be called with any model instance which implements
Visitable<V>, as defined in the generated model. |
@User protected void action(TypedPCData pcdata)
TypedPCData is reached when traversing the
model instance. This default implementation does nothing.@User public void match(Object o)
Visitable<V>, as defined in the generated model.
(The type-safe entry points in the generated classes are prefarable, namely
faster and less error-prone.)TypeCastException - if interface is not implemented.see also the complete user documentation .