Class 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.IClusterable
    Represents 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
      char charAt​(int index)  
      int length()  
      java.lang.CharSequence subSequence​(int start, int end)  
      java.lang.String toJSONString()  
      java.lang.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​(java.lang.CharSequence value)
        Function to be used to output the json value without quotes
        Parameters:
        value - the value
    • Method Detail

      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.lang.CharSequence
        Overrides:
        toString in class java.lang.Object
      • toJSONString

        public java.lang.String toJSONString()
        Specified by:
        toJSONString in interface com.github.openjson.JSONString
      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Specified by:
        subSequence in interface java.lang.CharSequence