org.lsmp.djep.rewrite.RewriteRuleI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jep Show documentation
Show all versions of jep Show documentation
JEP is a Java library for parsing and evaluating mathematical expressions.
/* @author rich
* Created on 01-Oct-2004
*/
package org.lsmp.djep.rewrite;
import org.nfunk.jep.*;
/**
* @author Rich Morris
* Created on 01-Oct-2004
*/
public interface RewriteRuleI {
/** Returns true if node needs to be rewritten, according to this rule. */
public boolean test(ASTFunNode node,Node children[]);
/** Rewrites the node */
public Node apply(ASTFunNode node,Node children[]) throws ParseException;
}