public class JSONObject
extends java.lang.Object
Constructor and Description |
---|
JSONObject() |
Modifier and Type | Method and Description |
---|---|
void |
addCGCall(java.lang.String key,
CGCall cgCall) |
int |
createArray(MJIEnv env,
ClassInfo ciArray,
Value value,
ChoiceGenerator<?>[] cgs,
java.lang.String prefix) |
int |
fillObject(MJIEnv env,
ClassInfo ci,
ChoiceGenerator<?>[] cgs,
java.lang.String prefix) |
CGCall |
getCGCall(java.lang.String key) |
java.lang.String[] |
getCGCallsKeys() |
Value |
getValue(java.lang.String key)
Get value read from JSON document with specified key.
|
java.lang.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(java.lang.String key)
key
- - value's key.public java.lang.String[] getValuesKeys()
public void addCGCall(java.lang.String key, CGCall cgCall)
public CGCall getCGCall(java.lang.String key)
public java.lang.String[] getCGCallsKeys()
public boolean requiresClinitExecution(ClassInfo ci, ThreadInfo ti)
public int fillObject(MJIEnv env, ClassInfo ci, ChoiceGenerator<?>[] cgs, java.lang.String prefix) throws ClinitRequired
ClinitRequired
public int createArray(MJIEnv env, ClassInfo ciArray, Value value, ChoiceGenerator<?>[] cgs, java.lang.String prefix)