
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.
|
makeStatementgetSourceInfo, setSourceInfo, toSource, toStringpublic JBinaryOperation(SourceInfo info, JType type, JBinaryOperator op, JExpression lhs, JExpression rhs)
public JExpression getLhs()
public JBinaryOperator getOp()
public JExpression getRhs()
public JType getType()
HasTypepublic boolean hasSideEffects()
hasSideEffects in class JExpressionpublic boolean isAssignment()
public void setType(JType newType)
public void traverse(JVisitor visitor, Context ctx)
JVisitablevisitor - the visitor that should traverse this nodectx - the context of an existing traversalCopyright © 2018. All rights reserved.