Package com.singularsys.jep.configurableparser

# Class ShuntingYard.ShuntingYardGrammarParserFactory

java.lang.Object
com.singularsys.jep.configurableparser.ShuntingYard.ShuntingYardGrammarParserFactory

All Implemented Interfaces:
  `GrammarParserFactory`, `JepComponent`, `Serializable`

Enclosing class:
  `ShuntingYard`

public static class ShuntingYard.ShuntingYardGrammarParserFactory extends Object implements GrammarParserFactory
Factory creating new ShuntingYard instances.

Since:
  3.4
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ShuntingYardGrammarParserFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `JepComponent`
  `getLightWeightInstance()`
  returns this.
  `void`
  `init(Jep jep)`
  Initialize the component.
  `GrammarParser`
  `newInstance(ConfigurableParser cp)`
  Create a new ShuntingYard instance.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ShuntingYardGrammarParserFactory

    public ShuntingYardGrammarParserFactory()

- ## Method Details

  - ### newInstance

    public GrammarParser newInstance(ConfigurableParser cp)
    Create a new ShuntingYard instance.
    Specified by:
      `newInstance` in interface `GrammarParserFactory`

  - ### 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`
    Parameters:
      `jep` - the current Jep instance

  - ### getLightWeightInstance

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