content: package com.alibaba.simpleEL.dialect.ql.ast;
  
  import java.io.PrintWriter;
  import java.io.StringWriter;
  
  import com.alibaba.simpleEL.dialect.ql.visitor.QLAstVisitor;
  import com.alibaba.simpleEL.dialect.ql.visitor.QLOutputAstVisitor;
  
  
  public class QLBinaryOpExpr extends QLExpr {
  	    public QLExpr left;
  	    public QLExpr right;
  	    public QLBinaryOperator operator;
  
  	    public QLBinaryOpExpr() {
  
  	    }
  
  	    public QLBinaryOpExpr(QLExpr left, QLBinaryOperator operator, QLExpr right) {
  
  	        this.left = left;
  	        this.right = right;
  	        this.operator = operator;
  	    }
  
  	    public QLBinaryOpExpr(QLExpr left, QLExpr right, QLBinaryOperator operator) {
  
  	        this.left = left;
  	        this.right = right;
  	        this.operator = operator;
  	    }
  
  	    public QLExpr getLeft() {
  	        return this.left;
  	    }
  
  	    public void setLeft(QLExpr left) {
  	        this.left = left;
  	    }
  
  	    public QLExpr getRight() {
  	        return this.right;
  	    }
  
  	    public void setRight(QLExpr right) {
  	        this.right = right;
  	    }
  
  	    public QLBinaryOperator getOperator() {
  	        return this.operator;
  	    }
  
  	    public void setOperator(QLBinaryOperator operator) {
  	        this.operator = operator;
  	    }
  	    
  	    public void output(StringBuffer buf) {
  	        StringWriter out = new StringWriter();
  	        PrintWriter printOut = new PrintWriter(out);
  	        
  	        QLOutputAstVisitor visitor = new QLOutputAstVisitor(printOut);
  	        this.accept(visitor);
  	        
  	        printOut.flush();
  	        
  	        buf.append(out.toString());
  	    }
  
  	    protected void accept0(QLAstVisitor visitor) {
  	        if (visitor.visit(this)) {
  	            acceptChild(visitor, this.left);
  	            acceptChild(visitor, this.right);
  	        }
  
  	        visitor.endVisit(this);
  	    }
  }
  