public abstract class JsUnaryOperation extends JsExpression
Constructor and Description |
---|
JsUnaryOperation(SourceInfo sourceInfo,
JsUnaryOperator op) |
JsUnaryOperation(SourceInfo sourceInfo,
JsUnaryOperator op,
JsExpression arg) |
Modifier and Type | Method and Description |
---|---|
JsExpression |
getArg() |
JsUnaryOperator |
getOperator() |
boolean |
hasSideEffects()
Determines whether the expression can cause side effects.
|
void |
setArg(JsExpression arg) |
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
isDefinitelyNotNull, isDefinitelyNull, isLeaf, makeStmt
getKind, getSourceInfo, setSourceInfo, toSource, toSource, toString
public JsUnaryOperation(SourceInfo sourceInfo, JsUnaryOperator op)
public JsUnaryOperation(SourceInfo sourceInfo, JsUnaryOperator op, JsExpression arg)
public JsExpression getArg()
public JsUnaryOperator getOperator()
public final boolean hasSideEffects()
JsExpression
hasSideEffects
in class JsExpression
public void setArg(JsExpression arg)
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.