|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.json.JSONFunction
public class JSONFunction
JSONFunction represents a javaScript function's text.
Constructor Summary | |
---|---|
JSONFunction(String text)
Constructs a JSONFunction with no parameters. |
|
JSONFunction(String[] params,
String text)
Constructs a JSONFunction with parameters. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String[] |
getParams()
Returns the parameters of this function. |
String |
getText()
Reeturns the text of this function. |
int |
hashCode()
|
static JSONFunction |
parse(String str)
Constructs a JSONFunction from a text representation |
String |
toString()
Returns the string representation of this function. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JSONFunction(String text)
text
- The text of the functionpublic JSONFunction(String[] params, String text)
params
- The parameters of the functiontext
- The text of the functionMethod Detail |
---|
public static JSONFunction parse(String str)
public boolean equals(Object obj)
equals
in class Object
public String[] getParams()
public String getText()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |