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. |
isInternable
isDefinitelyNotNull, isDefinitelyNull, makeStmt
getKind, getSourceInfo, setSourceInfo, toSource, toSource, toString
isBooleanFalse, isBooleanTrue
traverse
protected JsValueLiteral(SourceInfo sourceInfo)
public final boolean hasSideEffects()
JsExpression
hasSideEffects
in class JsExpression
public final boolean isLeaf()
JsExpression
JsNameRef
,
JsBooleanLiteral
, and so on. Leaf expressions never need to be parenthesized.isLeaf
in class JsExpression
Copyright © 2018. All rights reserved.