Package fr.iMath.algorithms
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 variablesvoid
matchesConstant(java.lang.String text, java.lang.String regex)
Update EquationObjectData list with constantsvoid
matchesNegative(java.lang.String text, java.lang.String regex)
Update EquationObjectData listvoid
matchesOperator(java.lang.String text, java.lang.String regex)
Update EquationObjectData list with operatorsvoid
showList(java.util.List<EquationObjectData> list)
Show EquationObjectData list
-
Field Details
-
list
List of numbers and operations
-
-
Constructor Details
-
InputAnalyzerAlgorithm
public InputAnalyzerAlgorithm()
-
-
Method Details
-
analyse
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
- Stringregex
- String
-
matchesNegative
public void matchesNegative(java.lang.String text, java.lang.String regex)Update EquationObjectData list- Parameters:
text
- Stringregex
- String
-
matchesConstant
public void matchesConstant(java.lang.String text, java.lang.String regex)Update EquationObjectData list with constants- Parameters:
text
- Stringregex
- String
-
matchesOperator
public void matchesOperator(java.lang.String text, java.lang.String regex)Update EquationObjectData list with operators- Parameters:
text
- Stringregex
- 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
Show EquationObjectData list- Parameters:
list
-List<EquationObjectData>
-