org.lsmp.djep.rewrite
Interface RewriteRuleI

All Known Implementing Classes:
AbstractRewrite, CollectPowers, ExpandBrackets, ExpandPower

public interface RewriteRuleI

Author:
Rich Morris Created on 01-Oct-2004

Method Summary
 Node apply(ASTFunNode node, Node[] children)
          Rewrites the node
 boolean test(ASTFunNode node, Node[] children)
          Returns true if node needs to be rewritten, according to this rule.
 

Method Detail

test

boolean test(ASTFunNode node,
             Node[] children)
Returns true if node needs to be rewritten, according to this rule.


apply

Node apply(ASTFunNode node,
           Node[] children)
           throws ParseException
Rewrites the node

Throws:
ParseException


http://www.singularsys.com/jep Copyright © 2007 Singular Systems