
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 |
isDefinitelyNotNull()
True if the target expression is definitely not null.
|
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, setArgisLeaf, makeStmtgetSourceInfo, setSourceInfo, toSource, toSource, toStringpublic JsPrefixOperation(SourceInfo sourceInfo, JsUnaryOperator op)
public JsPrefixOperation(SourceInfo sourceInfo, JsUnaryOperator op, JsExpression arg)
public boolean isBooleanFalse()
isBooleanFalse in interface CanBooleanEvalpublic boolean isBooleanTrue()
isBooleanTrue in interface CanBooleanEvalpublic boolean isDefinitelyNotNull()
JsExpressionisDefinitelyNotNull in class JsExpressionpublic boolean isDefinitelyNull()
JsExpressionisDefinitelyNull in class JsExpressionpublic void traverse(JsVisitor v, JsContext ctx)
JsVisitabletraverse in interface JsVisitabletraverse in class JsUnaryOperationv - the visitor that should traverse this nodectx - the context of an existing traversalCopyright © 2018. All rights reserved.