public class JBinaryOperation extends JExpression
Constructor and Description |
---|
JBinaryOperation(SourceInfo info,
JType type,
JBinaryOperator op,
JExpression lhs,
JExpression rhs) |
Modifier and Type | Method and Description |
---|---|
JExpression |
getLhs() |
JBinaryOperator |
getOp() |
JExpression |
getRhs() |
JType |
getType()
Returns the type of this expression.
|
boolean |
hasSideEffects() |
boolean |
isAssignment() |
void |
setType(JType newType) |
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
makeReturnStatement, makeStatement
getSourceInfo, setSourceInfo, toSource, toString
public JBinaryOperation(SourceInfo info, JType type, JBinaryOperator op, JExpression lhs, JExpression rhs)
public JExpression getLhs()
public JBinaryOperator getOp()
public JExpression getRhs()
public JType getType()
HasType
public boolean hasSideEffects()
hasSideEffects
in class JExpression
public boolean isAssignment()
public void setType(JType newType)
Copyright © 2018. All rights reserved.