Class PrintVisitor.NullPrintVisitor

java.lang.Object
com.singularsys.jep.PrintVisitor
com.singularsys.jep.PrintVisitor.NullPrintVisitor
All Implemented Interfaces:
JepComponent, ParserVisitor, Serializable
Enclosing class:
PrintVisitor

public static class PrintVisitor.NullPrintVisitor extends PrintVisitor
A do-nothing version of a PrintVisitor for reducing memory usage.
Since:
3.5
Author:
Richard Morris
See Also:
  • Method Details

    • init

      public void init(Jep jep)
      Description copied from interface: JepComponent
      Initialize the component. This method is called whenever a component is added to Jep. Hence, it allows components to keep track of the other components they may rely on.
      Specified by:
      init in interface JepComponent
      Overrides:
      init in class PrintVisitor
      Parameters:
      jep - the current Jep instance
    • getLightWeightInstance

      public JepComponent getLightWeightInstance()
      Returns this
      Specified by:
      getLightWeightInstance in interface JepComponent
      Overrides:
      getLightWeightInstance in class PrintVisitor
      Returns:
      either a new instance, null or 'this'.