|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.json.JSONFunction
public class JSONFunction
JSONFunction represents a javaScript function's text.
Constructor Summary | |
---|---|
JSONFunction(java.lang.String text)
Constructs a JSONFunction with no parameters. |
|
JSONFunction(java.lang.String[] params,
java.lang.String text)
Constructs a JSONFunction with parameters. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String[] |
getParams()
Returns the parameters of this function. |
java.lang.String |
getText()
Reeturns the text of this function. |
int |
hashCode()
|
static JSONFunction |
parse(JSONTokener x)
Constructs a JSONFunction from a text representation |
static JSONFunction |
parse(java.lang.String str)
Constructs a JSONFunction from a text representation |
java.lang.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(java.lang.String text)
text
- The text of the functionpublic JSONFunction(java.lang.String[] params, java.lang.String text)
params
- The parameters of the functiontext
- The text of the functionMethod Detail |
---|
public static JSONFunction parse(JSONTokener x)
public static JSONFunction parse(java.lang.String str)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String[] getParams()
public java.lang.String getText()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |