org.zkoss.json
Class JavaScriptValue
java.lang.Object
org.zkoss.json.JavaScriptValue
- All Implemented Interfaces:
- JSONAware
public class JavaScriptValue
- extends Object
- implements JSONAware
Used to generate a snippet of the JavaScript code.
- Since:
- 6.0.0
- Author:
- tomyeh
JavaScriptValue
public JavaScriptValue(String js)
- Constructor
- Parameters:
js - the snippet of the JavaScript code.
For example, "{what: 123, another: 'a'}".
The content is generated directly to the AU response, so it must be
a valid JavaScript code.
toJSONString
public String toJSONString()
- Specified by:
toJSONString in interface JSONAware
- Returns:
- JSON text
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
Copyright © 2013. All Rights Reserved.