Interface JepComponent

All Superinterfaces:
Serializable
All Known Subinterfaces:
Evaluator, GrammarParserFactory, NumberFactory, OperatorTableI, Parser, TokenizerFactory
All Known Implementing Classes:
BigDecFunctionTable, BigDecNumberFactory, BigDecOperatorTable, BitwiseOperatorTable, CaseInsensitiveFunctionTable, CaseInsensitiveVariableTable, ComponentSubset, ConfigurableParser, DeepCopyVisitor, DoNothingVisitor, DoubleNumberFactory, EmptyOperatorTable, ExpressionConsolidator, ExtendedOperatorSet, FastEvaluator, FastEvaluator3_4, FastEvaluator3_5, FunctionSet, FunctionTable, ImportationVisitor, JavaOperatorTable, LineNumberingNodeFactory, LineNumberingShuntingYard.LineNumberGrammarParserFactory, MacroFunction, NodeFactory, NullParser, NullWrappedFunctionFactory, NullWrappedFunctionTable, NullWrappedOperatorTable, OperatorTable, OperatorTable2, PostfixEvaluator, PrintVisitor, PrintVisitor.NullPrintVisitor, RealEvaluator, RealFunctionTable, RealVariableTable, ShuntingYard.ShuntingYardGrammarParserFactory, StackCheckingFastEvaluator, StandardConfigurableParser, StandardEvaluator, StandardFunctionTable, StandardOperatorTable, StandardOperatorTable2, StandardParser, StandardVariableTable, StringFunctionSet, SubstitutionVisitor, ThreadSafeEvaluator, Tokenizer.StandardTokenizerFactory, UncheckedEvaluator, VariableFactory, VariableTable

public interface JepComponent extends Serializable
Base interface for all Jep components (parsers, evaluators etc).
Author:
Richard Morris
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets a light-weight instance suitable for using in multiple threads.
    void
    init(Jep jep)
    Initialize the component.
  • Method Details

    • init

      void init(Jep jep)
      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.
      Parameters:
      jep - the current Jep instance
    • getLightWeightInstance

      JepComponent getLightWeightInstance()
      Gets a light-weight instance suitable for using in multiple threads.
      Returns:
      either a new instance, null or 'this'.