
public final class JsBooleanLiteral extends JsValueLiteral
| Modifier and Type | Field and Description |
|---|---|
static JsBooleanLiteral |
FALSE |
static JsBooleanLiteral |
TRUE |
| Modifier and Type | Method and Description |
|---|---|
static JsBooleanLiteral |
get(boolean value) |
NodeKind |
getKind() |
boolean |
getValue() |
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.
|
hasSideEffects, isLeafmakeStmtgetSourceInfo, setSourceInfo, toSource, toSource, toStringpublic static final JsBooleanLiteral FALSE
public static final JsBooleanLiteral TRUE
public static JsBooleanLiteral get(boolean value)
public boolean getValue()
public boolean isBooleanFalse()
public boolean isBooleanTrue()
public boolean isDefinitelyNotNull()
JsExpressionisDefinitelyNotNull in class JsExpressionpublic boolean isDefinitelyNull()
JsExpressionisDefinitelyNull in class JsExpressionpublic void traverse(JsVisitor v, JsContext ctx)
JsVisitablev - the visitor that should traverse this nodectx - the context of an existing traversalCopyright © 2018. All rights reserved.