pt.compiler.parser.ast.expr
Class BinaryExpr

java.lang.Object
  extended by pt.compiler.parser.ast.Node
      extended by pt.compiler.parser.ast.expr.Expression
          extended by pt.compiler.parser.ast.expr.BinaryExpr

public final class BinaryExpr
extends Expression

Author:
Julio Vilmar Gesser

Nested Class Summary
static class BinaryExpr.Operator
           
 
Constructor Summary
BinaryExpr(int line, int column, Expression left, Expression right, BinaryExpr.Operator op)
           
 
Method Summary
<R,A> R
accept(GenericVisitor<R,A> v, A arg)
           
<A> void
accept(VoidVisitor<A> v, A arg)
           
 Expression getLeft()
           
 BinaryExpr.Operator getOperator()
           
 Expression getRight()
           
 
Methods inherited from class pt.compiler.parser.ast.Node
getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryExpr

public BinaryExpr(int line,
                  int column,
                  Expression left,
                  Expression right,
                  BinaryExpr.Operator op)
Method Detail

getLeft

public Expression getLeft()

getRight

public Expression getRight()

getOperator

public BinaryExpr.Operator getOperator()

accept

public <A> void accept(VoidVisitor<A> v,
                       A arg)
Overrides:
accept in class Node

accept

public <R,A> R accept(GenericVisitor<R,A> v,
                      A arg)
Overrides:
accept in class Node