public final class JsStringLiteral extends JsValueLiteral
Constructor and Description |
---|
JsStringLiteral(SourceInfo sourceInfo,
String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
NodeKind |
getKind() |
String |
getValue() |
int |
hashCode() |
boolean |
isBooleanFalse() |
boolean |
isBooleanTrue() |
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, isLeaf
makeStmt
getSourceInfo, setSourceInfo, toSource, toSource, toString
public JsStringLiteral(SourceInfo sourceInfo, String value)
public String getValue()
public boolean isBooleanFalse()
public boolean isBooleanTrue()
public boolean isDefinitelyNull()
JsExpression
isDefinitelyNull
in class JsExpression
public void traverse(JsVisitor v, JsContext ctx)
JsVisitable
v
- the visitor that should traverse this nodectx
- the context of an existing traversalpublic boolean isInternable()
JsLiteral
isInternable
in class JsLiteral
Copyright © 2018. All rights reserved.