public class JSONObject extends Object
Constructor and Description |
---|
JSONObject() |
Modifier and Type | Method and Description |
---|---|
void |
addCGCall(String key,
CGCall cgCall) |
int |
createArray(MJIEnv env,
ClassInfo ciArray,
Value value,
ChoiceGenerator<?>[] cgs,
String prefix) |
int |
fillObject(MJIEnv env,
ClassInfo ci,
ChoiceGenerator<?>[] cgs,
String prefix) |
CGCall |
getCGCall(String key) |
String[] |
getCGCallsKeys() |
Value |
getValue(String key)
Get value read from JSON document with specified key.
|
String[] |
getValuesKeys() |
boolean |
requiresClinitExecution(ClassInfo ci,
ThreadInfo ti)
check if all required ClassInfos for this object have been initialized so
that the caller can decide if it has to re-execute before proceeding
NOTE - this currently does not support concrete field types that are subtypes
of the respective field types
|
public Value getValue(String key)
key
- - value's key.public String[] getValuesKeys()
public String[] getCGCallsKeys()
public boolean requiresClinitExecution(ClassInfo ci, ThreadInfo ti)
public int fillObject(MJIEnv env, ClassInfo ci, ChoiceGenerator<?>[] cgs, String prefix)
public int createArray(MJIEnv env, ClassInfo ciArray, Value value, ChoiceGenerator<?>[] cgs, String prefix)