public class BinaryAssignmentExpr extends OwnableExpr
Constructor and Description |
---|
BinaryAssignmentExpr(String varName,
Expr lhsExpr,
Expr expr,
BinaryExpr.BinaryOp binaryOp) |
BinaryAssignmentExpr(String owner,
String varName,
Expr lhsExpr,
Expr expr,
BinaryExpr.BinaryOp binaryOp) |
Modifier and Type | Method and Description |
---|---|
BinaryExpr.BinaryOp |
getBinaryOp() |
Expr |
getExpr() |
Expr |
getLhsExpr() |
String |
getVarName() |
void |
setLhsExpr(Expr lhsExpr) |
void |
visit(ASTNodeVisitor v)
Visits the
ASTNode . |
getOwner, isParent, setOwner, setParent
addChild, appendFlag, becomeParentOf, getAttribute, getAttributes, getChildren, getFlags, getLineNumber, getParentNode, getSourceLine, hasAttribute, hasFlag, isMemberAccessChild, isRootNode, setAttribute, setAttributes, setChildren, setFlags, setLineNumber, setMemberAccess, setParentNode, setSourceLine, toString
public BinaryAssignmentExpr(String varName, Expr lhsExpr, Expr expr, BinaryExpr.BinaryOp binaryOp)
varName
- lhsExpr
- expr
- binaryOp
- public BinaryAssignmentExpr(String owner, String varName, Expr lhsExpr, Expr expr, BinaryExpr.BinaryOp binaryOp)
owner
- varName
- lhsExpr
- expr
- binaryOp
- public void visit(ASTNodeVisitor v) throws EvalException
ASTNode
ASTNode
.visit
in class ASTNode
EvalException
public String getVarName()
public Expr getLhsExpr()
public void setLhsExpr(Expr lhsExpr)
lhsExpr
- the lhsExpr to setpublic Expr getExpr()
public BinaryExpr.BinaryOp getBinaryOp()
Copyright © 2010–2015. All rights reserved.