Class InputAnalyzerAlgorithm

java.lang.Object
fr.iMath.algorithms.InputAnalyzerAlgorithm

public class InputAnalyzerAlgorithm
extends java.lang.Object
Input Analyser Algorithm
Author:
JEANNIN Louis
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private java.util.SortedMap<java.lang.Integer,​EquationObjectData> list
    List of numbers and operations
  • Constructor Summary

    Constructors 
    Constructor Description
    InputAnalyzerAlgorithm()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<EquationObjectData> analyse​(java.lang.String function)
    Analyse.
    java.util.List<EquationObjectData> getList​(java.util.SortedMap<java.lang.Integer,​EquationObjectData> list)
    EquationObjectData list analysis.
    void matchesChar​(java.lang.String text, java.lang.String regex)
    Update EquationObjectData list with functions and variables
    void matchesConstant​(java.lang.String text, java.lang.String regex)
    Update EquationObjectData list with constants
    void matchesNegative​(java.lang.String text, java.lang.String regex)
    Update EquationObjectData list
    void matchesOperator​(java.lang.String text, java.lang.String regex)
    Update EquationObjectData list with operators
    void showList​(java.util.List<EquationObjectData> list)
    Show EquationObjectData list

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • list

      private final java.util.SortedMap<java.lang.Integer,​EquationObjectData> list
      List of numbers and operations
  • Constructor Details

  • Method Details

    • analyse

      public java.util.List<EquationObjectData> analyse​(java.lang.String function)
      Analyse.
      Parameters:
      function - String
      Returns:
      List of EquationObjectData
    • matchesChar

      public void matchesChar​(java.lang.String text, java.lang.String regex)
      Update EquationObjectData list with functions and variables
      Parameters:
      text - String
      regex - String
    • matchesNegative

      public void matchesNegative​(java.lang.String text, java.lang.String regex)
      Update EquationObjectData list
      Parameters:
      text - String
      regex - String
    • matchesConstant

      public void matchesConstant​(java.lang.String text, java.lang.String regex)
      Update EquationObjectData list with constants
      Parameters:
      text - String
      regex - String
    • matchesOperator

      public void matchesOperator​(java.lang.String text, java.lang.String regex)
      Update EquationObjectData list with operators
      Parameters:
      text - String
      regex - String
    • getList

      public java.util.List<EquationObjectData> getList​(java.util.SortedMap<java.lang.Integer,​EquationObjectData> list)
      EquationObjectData list analysis.
      Parameters:
      list - SortedMap<Integer,EquationObjectData>
      Returns:
      List of EquationObjectData
    • showList

      public void showList​(java.util.List<EquationObjectData> list)
      Show EquationObjectData list
      Parameters:
      list - List<EquationObjectData>