Package net.sf.json
Class JSONFunction
- java.lang.Object
-
- net.sf.json.JSONFunction
-
- All Implemented Interfaces:
Serializable
public class JSONFunction extends Object implements Serializable
JSONFunction represents a javaScript function's text.- Author:
- Andres Almiray
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JSONFunction(String text)Constructs a JSONFunction with no parameters.JSONFunction(String[] params, String text)Constructs a JSONFunction with parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)String[]getParams()Returns the parameters of this function.StringgetText()Reeturns the text of this function.inthashCode()static JSONFunctionparse(String str)Constructs a JSONFunction from a text representationStringtoString()Returns the string representation of this function.
-
-
-
Constructor Detail
-
JSONFunction
public JSONFunction(String text)
Constructs a JSONFunction with no parameters.- Parameters:
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.
-
-