src/main/java/cz/jirutka/rsql/parser/ast/NodesFactory.java
public LogicalNode createLogicalNode(LogicalOperator operator, List<Node> children) {
        switch (operator) {
            case AND : return new AndNode(children);
            case OR  : return new OrNode(children);

            // this normally can't happen
            default  : throw new IllegalStateException("Unknown operator: " + operator);
        }
    }
/**
     * Creates a specific {@link LogicalNode} instance for the specified operator and with the
     * given children nodes.
     *
     * @param operator The logical operator to create a node for.
     * @param children Children nodes, i.e. operands.
     * @return A subclass of the {@link LogicalNode} according to the specified operator.
     */
Creates a specific  LogicalNode instance for the specified operator and with the
given children nodes.

@param operator The logical operator to create a node for.
@param children Children nodes, i.e. operands.
@return A subclass of the  LogicalNode according to the specified operator.
Creates a specific LogicalNode instance for the specified operator and with the given children nodes . @param operator The logical operator to create a node for . @param children Children nodes i . e . operands . @return A subclass of the LogicalNode according to the specified operator .
public LogicalNode createLogicalNode(LogicalOperator operator, List<Node> children) {
        switch (operator) {
            case AND : return new AndNode(children);
            case OR  : return new OrNode(children);
            default  : throw new IllegalStateException("Unknown operator: " + operator);
        }
    }
public LogicalNode createLogicalNode ( LogicalOperator operator , List < Node > children ) { switch ( operator ) { case AND : return new AndNode ( children ) ; case OR : return new OrNode ( children ) ; default : throw new IllegalStateException ( "Unknown operator: " + operator ) ; } }
Creates a specific {@link LogicalNode} instance for the specified operator and with the
 given children nodes.
Creates a specific { @link LogicalNode } instance for the specified operator and with the given children nodes .
// this normally can't happen