Interface RewriteVisitor.VariableRuleI
- All Superinterfaces:
JepComponent,Serializable
- All Known Implementing Classes:
VariableShifter
- Enclosing class:
RewriteVisitor
Define a rule which may modify a variable node.
- Since:
- Jep 4.0
-
Method Summary
Modifier and TypeMethodDescriptionapply(ASTVarNode node) Rewrites the nodebooleantest(ASTVarNode node) Returns true if node needs to be rewritten, according to this rule.Methods inherited from interface com.singularsys.jep.JepComponent
getLightWeightInstance, init
-
Method Details
-
test
Returns true if node needs to be rewritten, according to this rule.- Throws:
ParseException- if for some reason rewriting cannot be performed.
-
apply
Rewrites the node- Throws:
ParseException
-