Package org.apache.wicket.ajax.json
Class JSONFunction
java.lang.Object
org.apache.wicket.ajax.json.JSONFunction
- All Implemented Interfaces:
com.github.openjson.JSONString
,Serializable
,CharSequence
,IClusterable
public class JSONFunction
extends Object
implements com.github.openjson.JSONString, CharSequence, IClusterable
Represents a Json function. When written out these values are not escaped, so it's possible to write out raw
JavaScript.
- See Also:
-
Constructor Summary
ConstructorDescriptionJSONFunction
(CharSequence value) Function to be used to output the json value without quotes -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) int
length()
subSequence
(int start, int end) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
JSONFunction
Function to be used to output the json value without quotes- Parameters:
value
- the value
-
-
Method Details
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
toJSONString
- Specified by:
toJSONString
in interfacecom.github.openjson.JSONString
-
length
- Specified by:
length
in interfaceCharSequence
-
charAt
- Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-