public final class JsBinaryOperation extends JsExpression
Constructor and Description |
---|
JsBinaryOperation(SourceInfo sourceInfo,
JsBinaryOperator op) |
JsBinaryOperation(SourceInfo sourceInfo,
JsBinaryOperator op,
JsExpression arg1,
JsExpression arg2) |
Modifier and Type | Method and Description |
---|---|
JsExpression |
getArg1() |
JsExpression |
getArg2() |
NodeKind |
getKind() |
JsBinaryOperator |
getOperator() |
boolean |
hasSideEffects()
Determines whether the expression can cause side effects.
|
boolean |
isDefinitelyNull()
True if the target expression is definitely null.
|
void |
setArg1(JsExpression arg1) |
void |
setArg2(JsExpression arg2) |
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
isLeaf, makeStmt
getSourceInfo, setSourceInfo, toSource, toSource, toString
public JsBinaryOperation(SourceInfo sourceInfo, JsBinaryOperator op)
public JsBinaryOperation(SourceInfo sourceInfo, JsBinaryOperator op, JsExpression arg1, JsExpression arg2)
public JsExpression getArg1()
public JsExpression getArg2()
public JsBinaryOperator getOperator()
public boolean hasSideEffects()
JsExpression
hasSideEffects
in class JsExpression
public boolean isDefinitelyNull()
JsExpression
isDefinitelyNull
in class JsExpression
public void setArg1(JsExpression arg1)
public void setArg2(JsExpression arg2)
public void traverse(JsVisitor v, JsContext ctx)
JsVisitable
v
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.