public interface TransformerRule
TransformerRule
is an interface to be implemented by all rules being
used in NodeTransformer
.Modifier and Type | Method and Description |
---|---|
Node |
apply(Node node)
Apply the rule to given node (when applicable).
|
boolean |
isApplicable(Node node)
Test for the rule can be applied to given node.
|
boolean isApplicable(Node node)
node
- Expression node to check applicability for.