gov.llnl.babel.ast
Class BinaryExpr

java.lang.Object
  extended by gov.llnl.babel.ast.ASTNode
      extended by gov.llnl.babel.ast.BinaryExpr

public class BinaryExpr
extends ASTNode


Field Summary
static int BITWISE_AND
           
static int BITWISE_OR
           
static int BITWISE_XOR
           
static int DIVIDE
           
static int EQUAL
           
static int GREATERTHAN
           
static int GREATERTHANEQ
           
static int IFF
           
static int IMPLIES
           
static int LESSTHAN
           
static int LESSTHANEQ
           
static int LOGICAL_AND
           
static int LOGICAL_OR
           
static int LOGICAL_XOR
           
static int MINUS
           
static int MODULUS
           
static int MULTIPLY
           
static int NOT_EQUAL
           
static int PLUS
           
static int POWER
           
static int REMAINDER
           
static int SHIFT_LEFT
           
static int SHIFT_RIGHT
           
 
Fields inherited from class gov.llnl.babel.ast.ASTNode
ILLEGAL_NODEID
 
Constructor Summary
BinaryExpr(ParseTreeNode src, ASTNode parent)
           
BinaryExpr(ParseTreeNode src, ASTNode parent, int operator, ASTNode lhs, ASTNode rhs)
           
 
Method Summary
 java.lang.Object accept(Visitor visitor, java.lang.Object data)
          implements "Visitor Pattern"
 ASTNode getLHS()
           
 int getOperator()
           
static java.lang.String getOpSIDL(int op)
          Return the SIDL operator string.
 ASTNode getRHS()
           
 void setLHS(ASTNode lhs)
           
 void setOperator(int op)
           
 void setRHS(ASTNode rhs)
           
 
Methods inherited from class gov.llnl.babel.ast.ASTNode
getFilename, getFirstToken, getLastToken, getNodeId, getParent, getParseTreeNode, getSymbolTableEntry, setFirstToken, setLastToken, setNodeId, setParent, setParseTreeNode, setSymbolTableEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUS

public static final int PLUS
See Also:
Constant Field Values

MINUS

public static final int MINUS
See Also:
Constant Field Values

MULTIPLY

public static final int MULTIPLY
See Also:
Constant Field Values

DIVIDE

public static final int DIVIDE
See Also:
Constant Field Values

POWER

public static final int POWER
See Also:
Constant Field Values

LESSTHAN

public static final int LESSTHAN
See Also:
Constant Field Values

LESSTHANEQ

public static final int LESSTHANEQ
See Also:
Constant Field Values

GREATERTHAN

public static final int GREATERTHAN
See Also:
Constant Field Values

GREATERTHANEQ

public static final int GREATERTHANEQ
See Also:
Constant Field Values

EQUAL

public static final int EQUAL
See Also:
Constant Field Values

LOGICAL_AND

public static final int LOGICAL_AND
See Also:
Constant Field Values

LOGICAL_OR

public static final int LOGICAL_OR
See Also:
Constant Field Values

LOGICAL_XOR

public static final int LOGICAL_XOR
See Also:
Constant Field Values

BITWISE_AND

public static final int BITWISE_AND
See Also:
Constant Field Values

BITWISE_OR

public static final int BITWISE_OR
See Also:
Constant Field Values

BITWISE_XOR

public static final int BITWISE_XOR
See Also:
Constant Field Values

SHIFT_LEFT

public static final int SHIFT_LEFT
See Also:
Constant Field Values

SHIFT_RIGHT

public static final int SHIFT_RIGHT
See Also:
Constant Field Values

IFF

public static final int IFF
See Also:
Constant Field Values

IMPLIES

public static final int IMPLIES
See Also:
Constant Field Values

MODULUS

public static final int MODULUS
See Also:
Constant Field Values

REMAINDER

public static final int REMAINDER
See Also:
Constant Field Values

NOT_EQUAL

public static final int NOT_EQUAL
See Also:
Constant Field Values
Constructor Detail

BinaryExpr

public BinaryExpr(ParseTreeNode src,
                  ASTNode parent)

BinaryExpr

public BinaryExpr(ParseTreeNode src,
                  ASTNode parent,
                  int operator,
                  ASTNode lhs,
                  ASTNode rhs)
Method Detail

setRHS

public void setRHS(ASTNode rhs)

setLHS

public void setLHS(ASTNode lhs)

getRHS

public ASTNode getRHS()

getLHS

public ASTNode getLHS()

setOperator

public void setOperator(int op)

getOperator

public int getOperator()

accept

public java.lang.Object accept(Visitor visitor,
                               java.lang.Object data)
Description copied from class: ASTNode
implements "Visitor Pattern"

Specified by:
accept in class ASTNode
Parameters:
visitor - The visitor class
data - Optional extra data
Returns:
Optional extra data

getOpSIDL

public static java.lang.String getOpSIDL(int op)
Return the SIDL operator string.