Package de.xima.fc.workflow.parser.infix
Class InfixExpression
- java.lang.Object
-
- de.xima.fc.workflow.parser.infix.InfixExpression
-
public final class InfixExpression extends Object
Static methods for working with infix expressions. Contains methods for creatingISymbolTable
s andIInfixExpressionHandler
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <TConstant extends IConstant,TOperator extends IOperator>
IInfixExpressionHandler<TConstant,TOperator>newHandler(ISymbolTable<TConstant,TOperator> symbols)
static <EOperator extends Enum<EOperator> & IOperator,EConstant extends Enum<EConstant> & IConstant>
ISymbolTableBuilder<EConstant,EOperator>newSymbolTable(Class<EOperator> operatorEnum, Class<EConstant> constantEnum)
static <TConstant extends IConstant,TOperator extends IOperator>
ISymbolTableBuilder<TConstant,TOperator>newSymbolTable(Iterable<TConstant> constants, Iterable<TOperator> operators)
-
-
-
Method Detail
-
newHandler
public static <TConstant extends IConstant,TOperator extends IOperator> IInfixExpressionHandler<TConstant,TOperator> newHandler(ISymbolTable<TConstant,TOperator> symbols)
- Parameters:
symbols
- A list of symbols supported by the infix expression.- Returns:
- A new parser for an infix expression with the given symbols.
-
newSymbolTable
public static <EOperator extends Enum<EOperator> & IOperator,EConstant extends Enum<EConstant> & IConstant> ISymbolTableBuilder<EConstant,EOperator> newSymbolTable(Class<EOperator> operatorEnum, Class<EConstant> constantEnum)
- Parameters:
operatorEnum
- Enumeration class with the supported operators.constantEnum
- Enumeration class with the supported symbols.- Returns:
- A new symbol table with the given operator and constant symbols.
-
newSymbolTable
public static <TConstant extends IConstant,TOperator extends IOperator> ISymbolTableBuilder<TConstant,TOperator> newSymbolTable(Iterable<TConstant> constants, Iterable<TOperator> operators)
- Parameters:
operators
- A list of supported operators.constants
- A list of supported symbols.- Returns:
- A new symbol table with the given operator and constant symbols.
-
-