cager.jexpr.ast
Class BinaryExpression

java.lang.Object
  extended bycager.jexpr.ast.AST
      extended bycager.jexpr.ast.TypedAST
          extended bycager.jexpr.ast.Expression
              extended bycager.jexpr.ast.BinaryExpression

public class BinaryExpression
extends Expression


Field Summary
 Expression E1
           
 Expression E2
           
 Operator op
           
 
Fields inherited from class cager.jexpr.ast.TypedAST
type
 
Constructor Summary
BinaryExpression(Expression E1, Operator op, Expression E2)
           
BinaryExpression(Expression E1, java.lang.String op, Expression E2)
           
 
Method Summary
 void dump(int level)
          Dump this node and all children to System.out.
 AST[] getChildren()
           
 java.lang.Object visit(Visitor v, java.lang.Object o)
          Provided to implement the visitor pattern.
 
Methods inherited from class cager.jexpr.ast.TypedAST
getType, setType
 
Methods inherited from class cager.jexpr.ast.AST
dumpChildren, dumpPrefix, getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

op

public Operator op

E1

public Expression E1

E2

public Expression E2
Constructor Detail

BinaryExpression

public BinaryExpression(Expression E1,
                        Operator op,
                        Expression E2)

BinaryExpression

public BinaryExpression(Expression E1,
                        java.lang.String op,
                        Expression E2)
Method Detail

getChildren

public AST[] getChildren()
Specified by:
getChildren in class AST

visit

public java.lang.Object visit(Visitor v,
                              java.lang.Object o)
                       throws ParseException
Description copied from class: AST
Provided to implement the visitor pattern.

Specified by:
visit in class AST
Throws:
ParseException

dump

public void dump(int level)
Description copied from class: AST
Dump this node and all children to System.out.

Overrides:
dump in class TypedAST