Interface RewriteVisitor.VariableRuleI
-
- All Superinterfaces:
JepComponent
,java.io.Serializable
- All Known Implementing Classes:
VariableShifter
- Enclosing class:
- RewriteVisitor
public static interface RewriteVisitor.VariableRuleI extends JepComponent
Define a rule which may modify a variable node.- Since:
- Jep 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Node
apply(ASTVarNode node)
Rewrites the nodeboolean
test(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 Detail
-
test
boolean test(ASTVarNode node) throws ParseException
Returns true if node needs to be rewritten, according to this rule.- Throws:
ParseException
- if for some reason rewriting cannot be performed.
-
apply
Node apply(ASTVarNode node) throws ParseException
Rewrites the node- Throws:
ParseException
-
-