
public final class JsObjectLiteral extends JsLiteral
| Constructor and Description |
|---|
JsObjectLiteral(SourceInfo sourceInfo) |
| Modifier and Type | Method and Description |
|---|---|
NodeKind |
getKind() |
List<JsPropertyInitializer> |
getPropertyInitializers() |
boolean |
hasSideEffects()
Determines whether the expression can cause side effects.
|
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.
|
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
isLeaf, makeStmtgetSourceInfo, setSourceInfo, toSource, toSource, toStringpublic JsObjectLiteral(SourceInfo sourceInfo)
public List<JsPropertyInitializer> getPropertyInitializers()
public boolean hasSideEffects()
JsExpressionhasSideEffects in class JsExpressionpublic 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 traversalCopyright © 2018. All rights reserved.