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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JSONFunction(CharSequence value)
Function to be used to output the json value without quotes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
int
length()
CharSequence
subSequence(int start, int end)
String
toJSONString()
String
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
-
-
-
-
Constructor Detail
-
JSONFunction
public JSONFunction(CharSequence value)
Function to be used to output the json value without quotes- Parameters:
value
- the value
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
toJSONString
public String toJSONString()
- Specified by:
toJSONString
in interfacecom.github.openjson.JSONString
-
length
public int length()
- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
-