// Path: src/main/java/com/evolvedbinary/xpath/parser/ast/AbstractOperand.java
// public abstract class AbstractOperand extends AbstractASTNode {
// 
//     //TODO(AR) make generic and move constructor etc from sub-classes into here
// }
// 
// Path: src/main/java/com/evolvedbinary/xpath/parser/ast/Comparison.java
// public interface Comparison extends ASTNode {
//     String getSyntax();
// }
// 
// Path: src/main/java/com/evolvedbinary/xpath/parser/ast/ComparisonExpr.java
// public class ComparisonExpr extends AbstractOperand {
//     private final AbstractOperand left;
//     private final Comparison comparison;
//     private final AbstractOperand right;
// 
//     public ComparisonExpr(final AbstractOperand left, final Comparison comparison, final AbstractOperand right) {
//         this.left = left;
//         this.comparison = comparison;
//         this.right = right;
//     }
// 
//     @Override
//     protected String describe() {
//         return "ComparisonExpr(" + left + " " + comparison + " " + right + ")";
//     }
// 
//     @Override
//     public boolean equals(final Object obj) {
//         if(obj != null && obj instanceof ComparisonExpr) {
//             final ComparisonExpr other = (ComparisonExpr)obj;
//             return other.left.equals(left)
//                     && other.comparison.equals(comparison)
//                     && other.right.equals(right);
//         }
// 
//         return false;
//     }
// }


import com.evolvedbinary.xpath.parser.ast.AbstractOperand;
import com.evolvedbinary.xpath.parser.ast.Comparison;
import com.evolvedbinary.xpath.parser.ast.ComparisonExpr;
/**
 * XPath 2 Parser
 * A Parser for XPath 2
 * Copyright (C) 2016 Evolved Binary Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
package com.evolvedbinary.xpath.parser.ast.partial;


/**
 * Created by aretter on 14/02/2016.
 */
public class PartialComparisonExpr extends AbstractPartialASTNode<PartialComparisonExpr.PartialComparisonExpr1, Comparison> {
    private final AbstractOperand left;

    public PartialComparisonExpr(final AbstractOperand left) {
        this.left = left;
    }

    @Override
    protected String describe() {
// Path: src/main/java/com/evolvedbinary/xpath/parser/ast/AbstractOperand.java
// public abstract class AbstractOperand extends AbstractASTNode {
// 
//     //TODO(AR) make generic and move constructor etc from sub-classes into here
// }
// 
// Path: src/main/java/com/evolvedbinary/xpath/parser/ast/Comparison.java
// public interface Comparison extends ASTNode {
//     String getSyntax();
// }
// 
// Path: src/main/java/com/evolvedbinary/xpath/parser/ast/ComparisonExpr.java
// public class ComparisonExpr extends AbstractOperand {
//     private final AbstractOperand left;
//     private final Comparison comparison;
//     private final AbstractOperand right;
// 
//     public ComparisonExpr(final AbstractOperand left, final Comparison comparison, final AbstractOperand right) {
//         this.left = left;
//         this.comparison = comparison;
//         this.right = right;
//     }
// 
//     @Override
//     protected String describe() {
//         return "ComparisonExpr(" + left + " " + comparison + " " + right + ")";
//     }
// 
//     @Override
//     public boolean equals(final Object obj) {
//         if(obj != null && obj instanceof ComparisonExpr) {
//             final ComparisonExpr other = (ComparisonExpr)obj;
//             return other.left.equals(left)
//                     && other.comparison.equals(comparison)
//                     && other.right.equals(right);
//         }
// 
//         return false;
//     }
// }


// Path: src/main/java/com/evolvedbinary/xpath/parser/ast/partial/PartialComparisonExpr.java
import com.evolvedbinary.xpath.parser.ast.AbstractOperand;
import com.evolvedbinary.xpath.parser.ast.Comparison;
import com.evolvedbinary.xpath.parser.ast.ComparisonExpr;

/**
 * XPath 2 Parser
 * A Parser for XPath 2
 * Copyright (C) 2016 Evolved Binary Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
package com.evolvedbinary.xpath.parser.ast.partial;


/**
 * Created by aretter on 14/02/2016.
 */
public class PartialComparisonExpr extends AbstractPartialASTNode<PartialComparisonExpr.PartialComparisonExpr1, Comparison> {
    private final AbstractOperand left;

    public PartialComparisonExpr(final AbstractOperand left) {
        this.left = left;
    }

    @Override
    protected String describe() {
        return "ComparisonExpr(" + left + ", ?, ?)";