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.
|
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)
public void traverse(JVisitor visitor, Context ctx)
JVisitable
visitor
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.