public class OperatorCollection extends Object
| Modifier and Type | Field and Description |
|---|---|
static OperatorCollection |
DEFAULT_OPERATORS
a collection of classical operators: and, or, not
|
| Constructor and Description |
|---|
OperatorCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFactory(OperatorFactory factory) |
FunctionNode |
createOperator(String value,
Stack<FunctionNode> stack)
Create a node corresponding to the parsed logical function.
|
List<String> |
getOperators() |
int |
getPriority(String value)
get the priority level of a given operator.
|
String |
getRegex() |
public static final OperatorCollection DEFAULT_OPERATORS
public FunctionNode createOperator(String value, Stack<FunctionNode> stack)
The operator symbol is provided, the node will extract its children from the parsing stack.
value - stack - public int getPriority(String value)
value - public String getRegex()
public void addFactory(OperatorFactory factory)
Copyright © 2009–2020. All rights reserved.