gov.llnl.babel.ast
Class BinaryExpr
java.lang.Object
gov.llnl.babel.ast.ASTNode
gov.llnl.babel.ast.BinaryExpr
public class BinaryExpr
- extends ASTNode
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 |
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
BinaryExpr
public BinaryExpr(ParseTreeNode src,
ASTNode parent)
BinaryExpr
public BinaryExpr(ParseTreeNode src,
ASTNode parent,
int operator,
ASTNode lhs,
ASTNode rhs)
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 classdata
- Optional extra data
- Returns:
- Optional extra data
getOpSIDL
public static java.lang.String getOpSIDL(int op)
- Return the SIDL operator string.