public interface Rule<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Rule.Context |
static class |
Rule.Result |
| Modifier and Type | Method and Description |
|---|---|
Rule.Result |
apply(T node,
Captures captures,
Rule.Context context) |
Pattern<T> |
getPattern()
Returns a pattern to which plan nodes this rule applies.
|
default boolean |
isEnabled(Session session) |
default boolean isEnabled(Session session)
Rule.Result apply(T node, Captures captures, Rule.Context context)
Copyright © 2012–2019. All rights reserved.