All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lsmp.djep.rewrite.RewriteRuleI Maven / Gradle / Ivy

Go to download

JEP is a Java library for parsing and evaluating mathematical expressions.

There is a newer version: 2.4.2
Show newest version
/* @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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy