public interface RewriteRuleI extends JepComponent
Modifier and Type | Method and Description |
---|---|
Node |
apply(ASTFunNode node,
Node[] children)
Rewrites the node
|
boolean |
test(ASTFunNode node,
Node[] children)
Returns true if node needs to be rewritten, according to this rule.
|
getLightWeightInstance, init
boolean test(ASTFunNode node, Node[] children) throws ParseException
ParseException
- if for some reason rewriting cannot be performed.Node apply(ASTFunNode node, Node[] children) throws ParseException
ParseException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep