public class JSONPObject extends Object implements JSONSerializable
| 构造器和说明 |
|---|
JSONPObject() |
JSONPObject(String function) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addParameter(Object parameter) |
String |
getFunction() |
List<Object> |
getParameters() |
void |
setFunction(String function) |
String |
toJSONString() |
String |
toString() |
void |
write(JSONSerializer serializer,
Object fieldName,
Type fieldType,
int features) |
public JSONPObject()
public JSONPObject(String function)
public String getFunction()
public void setFunction(String function)
public void addParameter(Object parameter)
public String toJSONString()
public void write(JSONSerializer serializer, Object fieldName, Type fieldType, int features) throws IOException
write 在接口中 JSONSerializableIOExceptionCopyright © 2012–2015 Alibaba Group. All rights reserved.