Package net.sf.json

Class JSONFunction

    • Constructor Detail

      • JSONFunction

        public JSONFunction​(String text)
        Constructs a JSONFunction with no parameters.
        Parameters:
        text - The text of the function
      • JSONFunction

        public JSONFunction​(String[] params,
                            String text)
        Constructs a JSONFunction with parameters.
        Parameters:
        params - The parameters of the function
        text - The text of the function
    • Method Detail

      • parse

        public static JSONFunction parse​(String str)
        Constructs a JSONFunction from a text representation
      • getParams

        public String[] getParams()
        Returns the parameters of this function.
      • getText

        public String getText()
        Reeturns the text of this function.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Returns the string representation of this function.
        Overrides:
        toString in class Object