程序包 com.sh.json

类 JSONFunction

java.lang.Object
com.sh.json.JSONFunction
所有已实现的接口:
Serializable

public class JSONFunction extends Object implements Serializable
JSONFunction represents a javaScript function's text.
另请参阅:
  • 构造器详细资料

    • JSONFunction

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

      public JSONFunction(String[] params, String text)
      Constructs a JSONFunction with parameters.
      参数:
      params - The parameters of the function
      text - The text of the function
  • 方法详细资料

    • parse

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

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • getParams

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

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

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      Returns the string representation of this function.
      覆盖:
      toString 在类中 Object