ast
Class BinaryArithMinusExpr
java.lang.Object
ast.ASTNode
ast.Expr
ast.BinaryExpr
ast.BinaryArithExpr
ast.BinaryArithMinusExpr
public class BinaryArithMinusExpr
- extends BinaryArithExpr
The BinaryArithMinusExpr class represents a minus expression. It
extends binary arithmetic expressions so it contains a lefthand expression
and a righthand expression. Since this class is similar to other subclasses
most of the functionality can be implemented in the visitor method for the
parent class.
- See Also:
ASTNode,
BinaryArithExpr
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryArithMinusExpr
public BinaryArithMinusExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
- BinaryArithMinusExpr constructor
- Parameters:
lineNum - source line number corresponding to this AST nodeleftExpr - left operand expressionrightExpr - right operand expression
getOpName
public java.lang.String getOpName()
- Get the operation name
- Specified by:
getOpName in class BinaryExpr
- Returns:
- op name
getOpType
public java.lang.String getOpType()
- Get the operation type
- Specified by:
getOpType in class BinaryExpr
- Returns:
- op type
getOperandType
public java.lang.String getOperandType()
- Get the operand type
- Specified by:
getOperandType in class BinaryExpr
- Returns:
- operand type
accept
public java.lang.Object accept(Visitor v)
- Visitor method
- Specified by:
accept in class BinaryArithExpr
- Parameters:
v - visitor object
- Returns:
- result of visiting this node
- See Also:
Visitor