
public abstract class JsValueLiteral extends JsLiteral
| Modifier | Constructor and Description |
|---|---|
protected |
JsValueLiteral(SourceInfo sourceInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasSideEffects()
Determines whether the expression can cause side effects.
|
boolean |
isLeaf()
Determines whether or not this expression is a leaf, such as a
JsNameRef,
JsBooleanLiteral, and so on. |
isDefinitelyNotNull, isDefinitelyNull, makeStmtgetKind, getSourceInfo, setSourceInfo, toSource, toSource, toStringisBooleanFalse, isBooleanTruetraverseprotected JsValueLiteral(SourceInfo sourceInfo)
public final boolean hasSideEffects()
JsExpressionhasSideEffects in class JsExpressionpublic final boolean isLeaf()
JsExpressionJsNameRef,
JsBooleanLiteral, and so on. Leaf expressions never need to be parenthesized.isLeaf in class JsExpressionCopyright © 2018. All rights reserved.