public final class JsPrefixOperation extends JsUnaryOperation implements CanBooleanEval
Constructor and Description |
---|
JsPrefixOperation(SourceInfo sourceInfo,
JsUnaryOperator op) |
JsPrefixOperation(SourceInfo sourceInfo,
JsUnaryOperator op,
JsExpression arg) |
Modifier and Type | Method and Description |
---|---|
NodeKind |
getKind() |
boolean |
isBooleanFalse() |
boolean |
isBooleanTrue() |
boolean |
isDefinitelyNull()
True if the target expression is definitely null.
|
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
getArg, getOperator, hasSideEffects, setArg
isLeaf, makeStmt
getSourceInfo, setSourceInfo, toSource, toSource, toString
public JsPrefixOperation(SourceInfo sourceInfo, JsUnaryOperator op)
public JsPrefixOperation(SourceInfo sourceInfo, JsUnaryOperator op, JsExpression arg)
public boolean isBooleanFalse()
isBooleanFalse
in interface CanBooleanEval
public boolean isBooleanTrue()
isBooleanTrue
in interface CanBooleanEval
public boolean isDefinitelyNull()
JsExpression
isDefinitelyNull
in class JsExpression
public void traverse(JsVisitor v, JsContext ctx)
JsVisitable
traverse
in interface JsVisitable
traverse
in class JsUnaryOperation
v
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.