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.
|
makeStatement
getSourceInfo, setSourceInfo, toSource, toString
public final List<JsonObject.JsonPropInit> propInits
public JsonObject(SourceInfo sourceInfo, JClassType jsoType)
public JClassType getType()
HasType
public boolean hasSideEffects()
hasSideEffects
in class JExpression
public void resolve(JClassType jsoType)
public void traverse(JVisitor visitor, Context ctx)
JVisitable
visitor
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.