Package net.sf.json
Class JSONFunction
java.lang.Object
net.sf.json.JSONFunction
- All Implemented Interfaces:
Serializable
JSONFunction represents a javaScript function's text.
- Author:
- Andres Almiray aalmiray@users.sourceforge.net
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJSONFunction(String text) Constructs a JSONFunction with no parameters.JSONFunction(String[] params, String text) Constructs a JSONFunction with parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanString[]Returns the parameters of this function.getText()Reeturns the text of this function.inthashCode()static JSONFunctionConstructs a JSONFunction from a text representationtoString()Returns the string representation of this function.
-
Constructor Details
-
JSONFunction
Constructs a JSONFunction with no parameters.- Parameters:
text- The text of the function
-
JSONFunction
Constructs a JSONFunction with parameters.- Parameters:
params- The parameters of the functiontext- The text of the function
-
-
Method Details
-
parse
Constructs a JSONFunction from a text representation -
equals
-
getParams
Returns the parameters of this function. -
getText
Reeturns the text of this function. -
hashCode
public int hashCode() -
toString
Returns the string representation of this function.
-