Class ImportationVisitor

All Implemented Interfaces:
GenericVisitor<Node,Void,ParseException>, JepComponent, Serializable

public class ImportationVisitor extends GenericDeepCopyVisitor<Void>
Imports an expression from one Jep instance into another. This class is quicker than using a SerializableExpression but cannot handle such large equations.
   Jep sourceJep = ...;
   Jep destJep = ...;
   ImportationVisitor iv = new ImportationVisitor(destJep);
   Node node = sourceJep.parse("x^2-y^2");
   Node imported = iv.importEqn(node); 
 

Since Jep 4.1, this class extends GenericDeepCopyVisitor, changing some type signatures. The method importEqn(Node) should be used to import equations, rather than the deprecated deepCopy(Node).

Since:
Jep 3.5
Author:
Richard Morris
See Also: