Package org.apache.wicket.ajax.json
Class JSONFunction
- java.lang.Object
-
- org.apache.wicket.ajax.json.JSONFunction
-
- All Implemented Interfaces:
com.github.openjson.JSONString,java.io.Serializable,java.lang.CharSequence,org.apache.wicket.util.io.IClusterable
public class JSONFunction extends java.lang.Object implements com.github.openjson.JSONString, java.lang.CharSequence, org.apache.wicket.util.io.IClusterableRepresents a Json function. When written out these values are not escaped so its possible to write out raw JavaScript.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JSONFunction(java.lang.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 charcharAt(int index)intlength()java.lang.CharSequencesubSequence(int start, int end)java.lang.StringtoJSONString()java.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacejava.lang.CharSequence- Overrides:
toStringin classjava.lang.Object
-
toJSONString
public java.lang.String toJSONString()
- Specified by:
toJSONStringin interfacecom.github.openjson.JSONString
-
length
public int length()
- Specified by:
lengthin interfacejava.lang.CharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAtin interfacejava.lang.CharSequence
-
subSequence
public java.lang.CharSequence subSequence(int start, int end)- Specified by:
subSequencein interfacejava.lang.CharSequence
-
-