Class ExpandBrackets
java.lang.Object
com.singularsys.extensions.rewrite.AbstractRewrite
com.singularsys.extensions.rewrite.ExpandBrackets
- All Implemented Interfaces:
RewriteRuleI,JepComponent,Serializable
A rule which expands brackets (a+b)*(c+d) -> a*c+a*d+b*c+b*d
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ASTFunNode node, List<Node> children) Rewrites the nodebooleantest(ASTFunNode node, List<Node> children) TODO cope with a * uminus(x+x)Methods inherited from class com.singularsys.extensions.rewrite.AbstractRewrite
getLightWeightInstance, init, toString
-
Constructor Details
-
ExpandBrackets
public ExpandBrackets()
-
-
Method Details
-
test
TODO cope with a * uminus(x+x) -
apply
Description copied from interface:RewriteRuleIRewrites the node- Throws:
ParseException
-