
public final class JsNumberLiteral extends JsValueLiteral
| Constructor and Description |
|---|
JsNumberLiteral(SourceInfo sourceInfo,
double value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
NodeKind |
getKind() |
double |
getValue() |
int |
hashCode() |
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.
|
boolean |
isInternable()
Return true if the literal can be interned.
|
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
hasSideEffects, isLeafmakeStmtgetSourceInfo, setSourceInfo, toSource, toSource, toStringpublic JsNumberLiteral(SourceInfo sourceInfo, double value)
public double 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 traversalpublic boolean isInternable()
JsLiteralisInternable in class JsLiteralCopyright © 2018. All rights reserved.