Package ru.ispras.fortress.transformer
Interface TransformerRule
-
- All Known Implementing Classes:
CompositeRule
public interface TransformerRule
TheTransformerRule
is an interface to be implemented by all rules being used inNodeTransformer
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
isApplicable
boolean isApplicable(Node node)
Test for the rule can be applied to given node.- Parameters:
node
- Expression node to check applicability for.- Returns:
- true if the rule is applicable to given node.
-
-