net.sf.json
Class JSONFunction

java.lang.Object
  extended by net.sf.json.JSONFunction
All Implemented Interfaces:
java.io.Serializable

public class JSONFunction
extends java.lang.Object
implements java.io.Serializable

JSONFunction represents a javaScript function's text.

Version:
3
Author:
Andres Almiray
See Also:
Serialized Form

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

JSONFunction

public JSONFunction(java.lang.String text)
Constructs a JSONFunction with no parameters.

Parameters:
text - The text of the function

JSONFunction

public JSONFunction(java.lang.String[] params,
                    java.lang.String text)
Constructs a JSONFunction with parameters.

Parameters:
params - The parameters of the function
text - The text of the function
Method Detail

parse

public static JSONFunction parse(JSONTokener x)
Constructs a JSONFunction from a text representation


parse

public static JSONFunction parse(java.lang.String str)
Constructs a JSONFunction from a text representation


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getParams

public java.lang.String[] getParams()
Returns the parameters of this function.


getText

public java.lang.String getText()
Reeturns the text of this function.


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Returns the string representation of this function.

Overrides:
toString in class java.lang.Object


Copyright © 2006 null. All Rights Reserved.