Interface RewriteRuleI
- All Superinterfaces:
JepComponent,Serializable
- All Known Implementing Classes:
AbstractRewrite,AbstractVectorMatrixRule,AddVectorMatrixRule,BinaryToNaryRule,CollectPowers,CrossProductRule,DotProductRule,ExpandBrackets,ExpandPower,MultiplyVectorMatrixRule,NaryToBinaryRule,ScalarDivisionRule,ScalarMultiplicationRule,SubtractVectorMatrixRule,UnchainingRewriteRule
Defines a rule for symbolic rewriting of an expression
-
Method Summary
Modifier and TypeMethodDescriptionapply(ASTFunNode node, List<Node> children) Rewrites the nodebooleantest(ASTFunNode node, List<Node> children) 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
-