| Constructor and Description |
|---|
NodesFactory(Set<ComparisonOperator> operators) |
| Modifier and Type | Method and Description |
|---|---|
ComparisonNode |
createComparisonNode(String operatorToken,
String selector,
List<String> arguments)
Creates a
ComparisonNode instance with the given parameters. |
LogicalNode |
createLogicalNode(LogicalOperator operator,
List<Node> children)
Creates a specific
LogicalNode instance for the specified operator and with the
given children nodes. |
public NodesFactory(Set<ComparisonOperator> operators)
public LogicalNode createLogicalNode(LogicalOperator operator, List<Node> children)
LogicalNode instance for the specified operator and with the
given children nodes.operator - The logical operator to create a node for.children - Children nodes, i.e. operands.LogicalNode according to the specified operator.public ComparisonNode createComparisonNode(String operatorToken, String selector, List<String> arguments) throws UnknownOperatorException
ComparisonNode instance with the given parameters.operatorToken - A textual representation of the comparison operator to be found in the
set of supported operators.selector - The selector that specifies the left side of the comparison.arguments - A list of arguments that specifies the right side of the comparison.UnknownOperatorException - If no operator for the specified operator token exists.Copyright © 2011–2016. All rights reserved.