
public final class JsArrayLiteral extends JsLiteral
| Constructor and Description |
|---|
JsArrayLiteral(SourceInfo sourceInfo,
Iterable<JsExpression> expressions) |
JsArrayLiteral(SourceInfo sourceInfo,
JsExpression... expressions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
List<JsExpression> |
getExpressions() |
NodeKind |
getKind() |
int |
hashCode() |
boolean |
hasSideEffects()
Determines whether the expression can cause side effects.
|
boolean |
isBooleanFalse() |
boolean |
isBooleanTrue() |
boolean |
isDefinitelyNull()
True if the target expression is definitely null.
|
boolean |
isInternable()
Some array literals are not mutated and hence internable.
|
void |
setInternable() |
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
isLeaf, makeStmtgetSourceInfo, setSourceInfo, toSource, toSource, toStringpublic JsArrayLiteral(SourceInfo sourceInfo, Iterable<JsExpression> expressions)
public JsArrayLiteral(SourceInfo sourceInfo, JsExpression... expressions)
public List<JsExpression> getExpressions()
public boolean hasSideEffects()
JsExpressionhasSideEffects in class JsExpressionpublic boolean isBooleanFalse()
public boolean isBooleanTrue()
public 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()
isInternable in class JsLiteralpublic void setInternable()
Copyright © 2018. All rights reserved.