public class JsonObject extends JExpression
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonObject.JsonPropInit
An individual property initializer within a JSON object initializer.
|
| Modifier and Type | Field and Description |
|---|---|
List<JsonObject.JsonPropInit> |
propInits |
| Constructor and Description |
|---|
JsonObject(SourceInfo sourceInfo,
JClassType jsoType) |
| Modifier and Type | Method and Description |
|---|---|
JClassType |
getType()
Returns the type of this expression.
|
boolean |
hasSideEffects() |
void |
resolve(JClassType jsoType)
Resolve an external references during AST stitching.
|
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
makeStatementgetSourceInfo, setSourceInfo, toSource, toStringpublic final List<JsonObject.JsonPropInit> propInits
public JsonObject(SourceInfo sourceInfo, JClassType jsoType)
public JClassType getType()
HasTypepublic boolean hasSideEffects()
hasSideEffects in class JExpressionpublic void resolve(JClassType jsoType)
public void traverse(JVisitor visitor, Context ctx)
JVisitablevisitor - the visitor that should traverse this nodectx - the context of an existing traversalCopyright © 2018. All rights reserved.