Java Doc for PnutsFunction.java in  » Scripting » Pnuts » pnuts » lang » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » Pnuts » pnuts.lang 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   pnuts.lang.Runtime
      pnuts.lang.PnutsFunction

All known Subclasses:   org.pnuts.io.readText,  org.pnuts.xml.nodeAccess,  org.pnuts.io.writeDouble,  org.pnuts.lib.random,  org.pnuts.tools.setThreadClassPath,  org.pnuts.lib.identical,  org.pnuts.lib.write,  org.pnuts.servlet.encodeURL,  org.pnuts.io.writeBoolean,  org.pnuts.math.round,  org.pnuts.lib.filter,  org.pnuts.util.getProperty,  org.pnuts.io.setCharacterEncoding,  org.pnuts.lib.getFile,  org.pnuts.multithread.threadLocal,  org.pnuts.multithread.SynchronizedFunction,  org.pnuts.util.setProperty,  org.pnuts.math.toDegrees,  org.pnuts.text.sprintf,  org.pnuts.io.writeText,  org.pnuts.lib._interface,  org.pnuts.xml.element,  org.pnuts.lib.unshift,  org.pnuts.io.getCharacterEncoding,  org.pnuts.lib.isEmpty,  org.pnuts.lib.classGenerator,  org.pnuts.io.dataInput,  org.pnuts.lib.getInetAddress,  pnuts.awt.useEventThread,  org.pnuts.math.sin,  org.pnuts.lib.formatDate,  org.pnuts.lib.formatPercent,  org.pnuts.lib.generator,  org.pnuts.io.open,  pnuts.security.MD,  org.pnuts.lib.println,  org.pnuts.lib.reduce,  org.pnuts.math.floor,  org.pnuts.lib.dirname,  org.pnuts.lib.DateElementDiff,  org.pnuts.io.writeChars,  org.pnuts.lib.formatCurrency,  org.pnuts.lib.rootScope,  org.pnuts.lib.size,  org.pnuts.servlet.getCookie,  org.pnuts.io.readByte,  org.pnuts.lib.hex,  org.pnuts.xml.newDocument,  org.pnuts.servlet.requestScope,  org.pnuts.io.writeInt,  org.pnuts.beans.decodeBean,  org.pnuts.lib.schedule,  org.pnuts.io.dataOutput,  org.pnuts.lib.getURL,  org.pnuts.lib.removePackage,  org.pnuts.io.readBytes,  org.pnuts.math.pow,  org.pnuts.net.encodeURL,  org.pnuts.math.abs,  org.pnuts.servlet.debug,  org.pnuts.text.textGrab,  org.pnuts.servlet.getURL,  org.pnuts.lib.DateElementAdd,  org.pnuts.text.readLine,  org.pnuts.math.IEEEremainder,  org.pnuts.xml.nodeEdit,  org.pnuts.util.loadProperties,  org.pnuts.lib.formatDateTime,  org.pnuts.multithread.async,  org.pnuts.lib.push,  org.pnuts.io.readShort,  org.pnuts.math.toRadians,  org.pnuts.lib.sort,  org.pnuts.multithread.createThread,  org.pnuts.lib.memcache,  org.pnuts.beans.getBeanProperty,  org.pnuts.net.makeQueryString,  org.pnuts.servlet.parseQueryString,  org.pnuts.servlet.makeQueryString,  org.pnuts.io.writeShort,  org.pnuts.lib.LRUcache,  org.pnuts.lib.shift,  org.pnuts.lib.findPackage,  org.pnuts.text.printf,  org.pnuts.beans.generateBeanClass,  org.pnuts.lib.subclass,  org.pnuts.io.readFloat,  org.pnuts.lib.run,  pnuts.util.setProperty,  org.pnuts.io.readUnsignedShort,  org.pnuts.beans.getBeanProperties,  org.pnuts.lib.constant,  org.pnuts.lib.format,  org.pnuts.io.writer,  org.pnuts.io.writeChar,  org.pnuts.lib.getTimeZone,  org.pnuts.beans.setBeanProperty,  org.pnuts.math.max,  org.pnuts.net.getLocalHost,  org.pnuts.lib.parse,  org.pnuts.lib.call,  org.pnuts.io.readDouble,  org.pnuts.lib.DateElement,  org.pnuts.lib.compile,  org.pnuts.lib.beanclass,  org.pnuts.servlet.getRequest,  org.pnuts.servlet.getSessionMap,  org.pnuts.lib.addClassPath,  org.pnuts.util.publicMemberAccess,  org.pnuts.lib.printAll,  org.pnuts.lib.pop,  org.pnuts.lib.setTimeZone,  org.pnuts.io.read,  org.pnuts.io.writeUTF,  org.pnuts.math.atan2,  org.pnuts.nio.scanLines,  org.pnuts.math.rint,  org.pnuts.lib.mapget,  org.pnuts.io.readInt,  org.pnuts.util.versionInfo,  org.pnuts.lib.isGenerator,  org.pnuts.lib.map,  org.pnuts.xml.writeDocument,  org.pnuts.lib.flush,  org.pnuts.xml.transformXSL,  org.pnuts.beans.encodeBean,  org.pnuts.io.writeObject,  org.pnuts.lib.string,  org.pnuts.lib.includeFile,  org.pnuts.lib.binarySearch,  org.pnuts.lib.setLocale,  org.pnuts.lib.exit,  org.pnuts.lib.unparse,  org.pnuts.math.sqrt,  org.pnuts.servlet.sendRedirect,  org.pnuts.lib.arraycopy,  org.pnuts.servlet.readGetParameters,  org.pnuts.multithread.sync,  org.pnuts.multithread.currentThread,  org.pnuts.io.readBoolean,  org.pnuts.lib.currentTimeMillis,  org.pnuts.lib.basename,  org.pnuts.lib.reverse,  org.pnuts.io.readLong,  org.pnuts.lib.makeProxy,  org.pnuts.math.tan,  org.pnuts.servlet.getParameter,  org.pnuts.beans.bind,  org.pnuts.tools.console,  org.pnuts.math.log,  org.pnuts.lib.toLowerCase,  org.pnuts.io.writeBytes,  org.pnuts.servlet.sendPostRequest,  org.pnuts.math.ceil,  org.pnuts.lib.formatTime,  org.pnuts.lib.mapput,  org.pnuts.beans.setBeanProperties,  org.pnuts.math.cos,  org.pnuts.lib.getClassPath,  org.pnuts.lib.javaAdapter,  org.pnuts.io.translate,  org.pnuts.servlet.decodeURL,  org.pnuts.util.nonPublicMemberAccess,  org.pnuts.lib.include,  org.pnuts.util.saveProperties,  org.pnuts.servlet.readMultipartRequest,  org.pnuts.servlet.escape,  org.pnuts.xml.selectNodeList,  org.pnuts.servlet.readParameters,  org.pnuts.lib.iterable,  org.pnuts.net.getInetAddress,  org.pnuts.xml.parseXML,  org.pnuts.lib.setFormatLocale,  org.pnuts.xml.selectSingleNode,  org.pnuts.io.readObject,  org.pnuts.io.writeLong,  org.pnuts.lib.list,  org.pnuts.lib.getLocale,  org.pnuts.lib.formatNumber,  org.pnuts.lib.date,  org.pnuts.lib.isArray,  org.pnuts.lib.toUpperCase,  org.pnuts.xml.readDocument,  org.pnuts.lib.isFunction,  org.pnuts.lib.count,  org.pnuts.servlet.getResponse,  org.pnuts.lib.project,  org.pnuts.io.readUTF,  org.pnuts.lib.join,  org.pnuts.servlet.addCookie,  org.pnuts.servlet.convertDynamicPage,  org.pnuts.math.atan,  org.pnuts.math.acos,  org.pnuts.text.formatTemplate,  org.pnuts.math.asin,  org.pnuts.lib.range,  org.pnuts.lib.set,  org.pnuts.lib.setFinalizer,  org.pnuts.servlet.getFile,  org.pnuts.lib.setClassPath,  org.pnuts.lib.getLocalHost,  org.pnuts.lib.mapFunction,  org.pnuts.servlet.getInitParameter,  org.pnuts.servlet.readPostParameters,  org.pnuts.lib.contains,  org.pnuts.xml.traverseDocument,  org.pnuts.lib.isJava2,  org.pnuts.lib._finally,  org.pnuts.io.writeFloat,  org.pnuts.multithread._threadPool,  org.pnuts.text.applyTemplate,  org.pnuts.io.openURL,  org.pnuts.beans.unbind,  org.pnuts.io.readChar,  org.pnuts.math.exp,  org.pnuts.lib.getMaxDayOfYear,  org.pnuts.servlet.readDynamicPage,  org.pnuts.util.rangeEnum,  org.pnuts.text.readLines,  org.pnuts.io.readUnsignedByte,  org.pnuts.math.min,  org.pnuts.servlet.getSession,  org.pnuts.lib.print,  org.pnuts.servlet.forward,  org.pnuts.lib.getPackage,  pnuts.lang.Builtin,  org.pnuts.net.decodeURL,  org.pnuts.util.loopEnum,  org.pnuts.io.reader,  org.pnuts.lib.isCompiled,  org.pnuts.lib.getMaxDayOfMonth,  org.pnuts.servlet.requestPath,  org.pnuts.lib.aggregateMode,  org.pnuts.servlet.formatDynamicPage,  org.pnuts.lib.getResource,  org.pnuts.xml.defineTags,
PnutsFunction
public class PnutsFunction extends Runtime implements Callable,Cloneable,Serializable(Code)
A PnutsFunction represents a group of Pnuts functions with a same name.

This class is serializable, whether the function is compiled or not. When an PnutsFunction object is serialized, the function definitions are written to the object stream, along with its attributes such as configuration, import environment, current package, and module list. Note that the current package is deeply copied, but the module list are written as an array of module names.

When the function is deserialized, the function definition is restored from the function definition read from the object stream. If the function had been compiled, the script is compiled. If modules referenced by the function are not used in the current context, the module is initialized for the function in such a way that it does not affect the current context.

On AST interpreter, nested functions with lexical scope can be serialized/deserialized. But with bytecode compiler, only top-level functions can be serialized/deserialized.

Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing.


Inner Class :class Enum implements Enumeration

Field Summary
final public static  PnutsFunctionAUTOLOAD
    
final public static  PnutsFunctionCATCH
    
final public static  PnutsFunctionCLASS
    
final public static  PnutsFunctionDEFINED
    
final public static  PnutsFunctionEVAL
    
final public static  PnutsFunctionGET_CONTEXT
    
final public static  PnutsFunctionIMPORT
    
final public static  PnutsFunctionLOAD
    
final public static  PnutsFunctionLOAD_FILE
    
final public static  PnutsFunctionPACKAGE
    
final public static  PnutsFunctionQUIT
    
final public static  PnutsFunctionREQUIRE
    
final public static  PnutsFunctionTHROW
    
final public static  PnutsFunctionUNUSE
    
final public static  PnutsFunctionUSE
    
final static  String_autoload
    
final static  String_catch
    
final static  String_class
    
final static  String_defined
    
final static  String_eval
    
final static  String_getContext
    
final static  String_import
    
final static  String_load
    
final static  String_loadFile
    
final static  String_package
    
final static  String_quit
    
final static  String_require
    
final static  String_throw
    
final static  String_unuse
    
final static  String_use
    
 intcount
    
transient  Function[]functions
    
protected  Stringname
    
protected transient  Packagepkg
    
final static  PnutsFunctionprimitives
    
final static  longserialVersionUID
    

Constructor Summary
protected  PnutsFunction()
    
protected  PnutsFunction(String name)
    
protected  PnutsFunction(String name, PnutsFunction parent)
    

Method Summary
public  Objectaccept(int narg, Visitor visitor, Context context)
    
Parameters:
  narg - the number of paramters.
protected  voidadded(int narg)
     This method is called when a Function object is registered to this object.
final public  Objectcall(Object[] args, Context context)
     Call a function in "context" with arguments "args".
public static  Objectcall(String name, Object args, Context context)
    
public  Objectclone()
    
public  booleandefined(int narg)
     Check if the function with narg parameter is defined
Parameters:
  narg - the number of paramters.
protected  Enumerationelements()
    
protected  Objectexec(Object[] args, Context context)
     Call a function in "context" with arguments "args".
protected static  Objectexec(PnutsFunction func, Object args, Context context)
    
final public  Functionget(int narg)
    
public  String[]getImportEnv(int narg)
    
Parameters:
  narg - the number of paramters.
public  StringgetName()
    
public  PackagegetPackage()
    
public  booleanisBuiltin()
    
synchronized  voidput(int narg, Function f)
    
public  voidsetPackage(Package pkg)
    
public  StringtoString()
    
protected  voidundefined(Object args, Context context)
    
public  Stringunparse(int narg)
     Retrieve the symbolic definition of the function.
Parameters:
  narg - the number of paramters.

Field Detail
AUTOLOAD
final public static PnutsFunction AUTOLOAD(Code)



CATCH
final public static PnutsFunction CATCH(Code)



CLASS
final public static PnutsFunction CLASS(Code)



DEFINED
final public static PnutsFunction DEFINED(Code)



EVAL
final public static PnutsFunction EVAL(Code)



GET_CONTEXT
final public static PnutsFunction GET_CONTEXT(Code)



IMPORT
final public static PnutsFunction IMPORT(Code)



LOAD
final public static PnutsFunction LOAD(Code)



LOAD_FILE
final public static PnutsFunction LOAD_FILE(Code)



PACKAGE
final public static PnutsFunction PACKAGE(Code)



QUIT
final public static PnutsFunction QUIT(Code)



REQUIRE
final public static PnutsFunction REQUIRE(Code)



THROW
final public static PnutsFunction THROW(Code)



UNUSE
final public static PnutsFunction UNUSE(Code)



USE
final public static PnutsFunction USE(Code)



_autoload
final static String _autoload(Code)



_catch
final static String _catch(Code)



_class
final static String _class(Code)



_defined
final static String _defined(Code)



_eval
final static String _eval(Code)



_getContext
final static String _getContext(Code)



_import
final static String _import(Code)



_load
final static String _load(Code)



_loadFile
final static String _loadFile(Code)



_package
final static String _package(Code)



_quit
final static String _quit(Code)



_require
final static String _require(Code)



_throw
final static String _throw(Code)



_unuse
final static String _unuse(Code)



_use
final static String _use(Code)



count
int count(Code)



functions
transient Function[] functions(Code)



name
protected String name(Code)
the name



pkg
protected transient Package pkg(Code)



primitives
final static PnutsFunction primitives(Code)



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
PnutsFunction
protected PnutsFunction()(Code)



PnutsFunction
protected PnutsFunction(String name)(Code)
Constructor
Parameters:
  name - the name of the function



PnutsFunction
protected PnutsFunction(String name, PnutsFunction parent)(Code)
Constructor
Parameters:
  name - the name of the function
Parameters:
  parent - the parent function




Method Detail
accept
public Object accept(int narg, Visitor visitor, Context context)(Code)

Parameters:
  narg - the number of paramters. -1 means a arbitrary lengthparameter.



added
protected void added(int narg)(Code)
This method is called when a Function object is registered to this object. This method just returns. Subclass can override this as a hook method.
Parameters:
  narg - the number of parameters



call
final public Object call(Object[] args, Context context)(Code)
Call a function in "context" with arguments "args". Increments the counter for Pnuts.evalDepth() during the execution. the result of the call



call
public static Object call(String name, Object args, Context context)(Code)
call a function "name" in "context" with arguments "args"



clone
public Object clone()(Code)



defined
public boolean defined(int narg)(Code)
Check if the function with narg parameter is defined
Parameters:
  narg - the number of paramters. true if a function with narg, otherwise false



elements
protected Enumeration elements()(Code)



exec
protected Object exec(Object[] args, Context context)(Code)
Call a function in "context" with arguments "args". Subclasses of this class should override this method. the result of the call



exec
protected static Object exec(PnutsFunction func, Object args, Context context)(Code)



get
final public Function get(int narg)(Code)



getImportEnv
public String[] getImportEnv(int narg)(Code)

Parameters:
  narg - the number of paramters. -1 means a arbitrary lengthparameter. imports of the function (array of Class or String)



getName
public String getName()(Code)
the name of functions



getPackage
public Package getPackage()(Code)
Package in which the function is defined



isBuiltin
public boolean isBuiltin()(Code)



put
synchronized void put(int narg, Function f)(Code)



setPackage
public void setPackage(Package pkg)(Code)



toString
public String toString()(Code)



undefined
protected void undefined(Object args, Context context)(Code)



unparse
public String unparse(int narg)(Code)
Retrieve the symbolic definition of the function.
Parameters:
  narg - the number of paramters. -1 means a arbitrary lengthparameter. the function definition



Fields inherited from pnuts.lang.Runtime
final protected static String BOOLEAN_SYMBOL(Code)(Java Doc)
final protected static String BYTE_SYMBOL(Code)(Java Doc)
final protected static String CHAR_SYMBOL(Code)(Java Doc)
final protected static String CLONE(Code)(Java Doc)
final protected static String DOUBLE_SYMBOL(Code)(Java Doc)
final protected static String EXCEPTOIN_FIELD_SYMBOL(Code)(Java Doc)
final protected static String FLOAT_SYMBOL(Code)(Java Doc)
final protected static String INT_SYMBOL(Code)(Java Doc)
final protected static String LONG_SYMBOL(Code)(Java Doc)
final protected static Object[] NO_PARAM(Code)(Java Doc)
final protected static String SHORT_SYMBOL(Code)(Java Doc)
final protected static String VOID_SYMBOL(Code)(Java Doc)
protected Cache fieldCache(Code)(Java Doc)
static FunctionSerializer functionSerializer(Code)(Java Doc)
static ThreadLocal threadContext(Code)(Java Doc)

Methods inherited from pnuts.lang.Runtime
protected Object _callConstructor(Context context, Class c, Object args, Class types)(Code)(Java Doc)
protected Object _callMethod(Context context, Class c, String name, Object args, Class types, Object target)(Code)(Java Doc)
protected Object _getField(Context context, Class c, String name, Object target)(Code)(Java Doc)
protected void _putField(Context context, Class cls, String name, Object target, Object value)(Code)(Java Doc)
final public static Object add(Object n1, Object n2)(Code)(Java Doc)
final protected static Object add(Object n1, Object n2, Context context)(Code)(Java Doc)
final public static Object add1(Object n)(Code)(Java Doc)
final protected static Object add1(Object n, Context context)(Code)(Java Doc)
public static void addImport(Context context, String name)(Code)(Java Doc)
public static void addStaticMembers(Context context, String name, boolean wildcard)(Code)(Java Doc)
final public static Object and(Object n1, Object n2)(Code)(Java Doc)
final protected static Object and(Object n1, Object n2, Context context)(Code)(Java Doc)
public static Object applyGenerator(Generator g, PnutsFunction closure, Context context)(Code)(Java Doc)
public static Class arrayType(Class c, int dim)(Code)(Java Doc)
protected static int arraydim(Object o)(Code)(Java Doc)
final public static Object call(Context context, Object target, Object[] args, Class[] casts)(Code)(Java Doc)
final public static Object call(Context context, Object target, Object[] args, Class[] casts, int line, int column)(Code)(Java Doc)
public static Object callConstructor(Context context, Class c, Object args, Class types)(Code)(Java Doc)
final protected static Object callFunction(Context context, PnutsFunction func, Object[] args)(Code)(Java Doc)
public static Object callMethod(Context context, Class c, String name, Object args, Class types, Object target)(Code)(Java Doc)
public static Object cast(Context context, Class type, Object object, boolean flag)(Code)(Java Doc)
protected static void catchException(Class type, PnutsFunction func, Context context)(Code)(Java Doc)
protected static void checkException(Context context, Throwable throwable)(Code)(Java Doc)
protected static void checkException(Context context, Throwable throwable, TypeMap tmap)(Code)(Java Doc)
static int compareArrays(Object a1, Object a2)(Code)(Java Doc)
static int compareListToArray(List ol, Object array)(Code)(Java Doc)
static int compareLists(List ol1, List ol2)(Code)(Java Doc)
public static int compareObjects(Object e1, Object e2)(Code)(Java Doc)
final public static int compareTo(Object n1, Object n2)(Code)(Java Doc)
final protected static int compareTo(Object n1, Object n2, Context context)(Code)(Java Doc)
static Number compress(Number n)(Code)(Java Doc)
public static Cache createCache()(Code)(Java Doc)
protected static List createList(Context context)(Code)(Java Doc)
protected static Map createMap(int size, Context context)(Code)(Java Doc)
public static Map createWeakMap()(Code)(Java Doc)
static Number decimalNumber(String s, int radix)(Code)(Java Doc)
protected static PnutsFunction defineTopLevelFunction(Function f, String symbol, Package pkg, Context context)(Code)(Java Doc)
protected static PnutsFunction defineUnboundFunction(Function f, String symbol, Package pkg)(Code)(Java Doc)
static void deserializePnutsFunction(PnutsFunction pnutsFunction, ObjectInputStream s) throws IOException, ClassNotFoundException(Code)(Java Doc)
final public static Object divide(Object n1, Object n2)(Code)(Java Doc)
final protected static Object divide(Object n1, Object n2, Context context)(Code)(Java Doc)
final public static boolean eq(Object n1, Object n2)(Code)(Java Doc)
final protected static boolean eq(Object n1, Object n2, Context context)(Code)(Java Doc)
protected static void escape(Object v)(Code)(Java Doc)
protected Object exec(Context context)(Code)(Java Doc)
public Object execute(Context context)(Code)(Java Doc)
public static URL fileToURL(File file) throws IOException(Code)(Java Doc)
protected static Method findCallableMethod(Class clazz, String name, Class args)(Code)(Java Doc)
public static String format(Object object, int maxArrayLength)(Code)(Java Doc)
public static String format(Object object, int maxArrayLength, int maxFormatSize)(Code)(Java Doc)
public static String format(Object object, int maxArrayLength, int maxFormatSize, char[] paren)(Code)(Java Doc)
static void format(Object object, int maxArrayLength, int maxFormatSize, char[] paren, Set formattedObjects, StringBuffer sb)(Code)(Java Doc)
static void formatElement(Object obj, int maxArrayLength, int maxFormatSize, char[] paren, Set formattedObjects, StringBuffer sb)(Code)(Java Doc)
final public static boolean ge(Object n1, Object n2)(Code)(Java Doc)
final protected static boolean ge(Object n1, Object n2, Context context)(Code)(Java Doc)
final public static int getArrayLength(Object array)(Code)(Java Doc)
public static Object getBeanProperty(Context context, Object target, String name)(Code)(Java Doc)
public Object getBeanProperty(Object target, String name) throws IllegalAccessException, InvocationTargetException(Code)(Java Doc)
protected Object getBeanProperty(Object target, String name, Class stopClass) throws IllegalAccessException, InvocationTargetException(Code)(Java Doc)
public Class getBeanPropertyType(Class cls, String name)(Code)(Java Doc)
protected static int getBeginColumn(Context context)(Code)(Java Doc)
protected static int getBeginLine(Context context)(Code)(Java Doc)
public static boolean getBoolean(String key)(Code)(Java Doc)
public static Class getBottomType(Class clazz)(Code)(Java Doc)
static String getClassName(Class cls)(Code)(Java Doc)
public static Executable getCompiledScript(String name, Context context)(Code)(Java Doc)
protected static Constructor[] getConstructors(Context context, Class cls)(Code)(Java Doc)
static ImportEnv getDefaultImports(Context context)(Code)(Java Doc)
public static Runtime getDefaultRuntime()(Code)(Java Doc)
public static Object getElement(Object target, Object key, Context context)(Code)(Java Doc)
public static Object getElementAt(Object target, int idx, Context context)(Code)(Java Doc)
protected static int getEndLine(Context context)(Code)(Java Doc)
public static Object getField(Context context, Object target, String name)(Code)(Java Doc)
protected Field getField(Class cls, String name)(Code)(Java Doc)
protected static Function getFunction(PnutsFunction pf, int nargs)(Code)(Java Doc)
protected static Function getFunction(Context context)(Code)(Java Doc)
protected static Enumeration getFunctions(PnutsFunction pf)(Code)(Java Doc)
protected static String getMessage(String bundleName, String key, Object a)(Code)(Java Doc)
protected static Method[] getMethods(Context context, Class cls)(Code)(Java Doc)
public static String getProperty(String key)(Code)(Java Doc)
public static Object getRange(Object target, Object idx1, Object idx2, Context context)(Code)(Java Doc)
protected static Runtime getRuntime(Context context)(Code)(Java Doc)
public static Reader getScriptReader(InputStream in, Context context)(Code)(Java Doc)
protected static Object getScriptSource(Context context)(Code)(Java Doc)
public static URL getScriptURL(String name, Context context)(Code)(Java Doc)
public static Object getStaticField(Context context, Class clazz, String name)(Code)(Java Doc)
public static Context getThreadContext()(Code)(Java Doc)
final public static boolean gt(Object n1, Object n2)(Code)(Java Doc)
final protected static boolean gt(Object n1, Object n2, Context context)(Code)(Java Doc)
final public static boolean isArray(Object obj)(Code)(Java Doc)
public static boolean isGenerator(SimpleNode node)(Code)(Java Doc)
protected static void jump(Object v)(Code)(Java Doc)
final public static boolean le(Object n1, Object n2)(Code)(Java Doc)
final protected static boolean le(Object n1, Object n2, Context context)(Code)(Java Doc)
public static SimpleNode loadNode(String str)(Code)(Java Doc)
static Object lookupTopLevelValue(String symbol, Context context)(Code)(Java Doc)
final public static boolean lt(Object n1, Object n2)(Code)(Java Doc)
final protected static boolean lt(Object n1, Object n2, Context context)(Code)(Java Doc)
protected static Object makeArray(Object[] parameters, Context context)(Code)(Java Doc)
protected static int matchType(Class type, Object obj)(Code)(Java Doc)
final public static Object mod(Object n1, Object n2)(Code)(Java Doc)
final protected static Object mod(Object n1, Object n2, Context context)(Code)(Java Doc)
final public static Object multiply(Object n1, Object n2)(Code)(Java Doc)
final protected static Object multiply(Object n1, Object n2, Context context)(Code)(Java Doc)
final public static boolean ne(Object n1, Object n2)(Code)(Java Doc)
final protected static boolean ne(Object n1, Object n2, Context context)(Code)(Java Doc)
final public static Object negate(Object n)(Code)(Java Doc)
final protected static Object negate(Object n, Context context)(Code)(Java Doc)
protected static Object newInstance(Context context, Class c, Object[] args, Class[] casts)(Code)(Java Doc)
final public static Object not(Object n)(Code)(Java Doc)
final protected static Object not(Object n, Context context)(Code)(Java Doc)
final public static Object or(Object n1, Object n2)(Code)(Java Doc)
final protected static Object or(Object n1, Object n2, Context context)(Code)(Java Doc)
public static Character parseChar(String str) throws ParseException(Code)(Java Doc)
public static Object[] parseFloat(String str)(Code)(Java Doc)
public static Object[] parseInt(String str) throws ParseException(Code)(Java Doc)
static Object[] parseInt(String str, int radix, boolean shrink) throws ParseException(Code)(Java Doc)
public static String parseString(String str, int offset) throws ParseException(Code)(Java Doc)
public static Object primitive(Context context, Class primitiveType, Object param, boolean flag)(Code)(Java Doc)
static Object primitive(Class primitiveType, Object param, boolean flag, int radix)(Code)(Java Doc)
public static void printError(Throwable t, Context context)(Code)(Java Doc)
public static void putField(Context context, Object target, String name, Object expr)(Code)(Java Doc)
public static void putStaticField(Context context, Class clazz, String name, Object expr)(Code)(Java Doc)
public static Object quantity(Number number, String numberString, String unit, Context context)(Code)(Java Doc)
static void recoverParseError(PnutsParser parser, int tokenType)(Code)(Java Doc)
public static String replaceChar(String str, Number n, Object expr)(Code)(Java Doc)
public Object run(Context context)(Code)(Java Doc)
public static String saveNode(SimpleNode node)(Code)(Java Doc)
static void serializePnutsFunction(PnutsFunction pnutsFunction, ObjectOutputStream s) throws IOException(Code)(Java Doc)
public static void setBeanProperty(Context context, Object target, String name, Object value)(Code)(Java Doc)
public void setBeanProperty(Object target, String name, Object value) throws IllegalAccessException, InvocationTargetException(Code)(Java Doc)
protected void setBeanProperty(Object target, String name, Object value, Class stopClass) throws IllegalAccessException, InvocationTargetException(Code)(Java Doc)
public static void setElement(Object target, Object key, Object value, Context context)(Code)(Java Doc)
public static void setExitHook(Context context, PnutsFunction func)(Code)(Java Doc)
protected static void setLine(Context context, int beginLine, int beginColumn)(Code)(Java Doc)
public static void setLine(Context context, int line)(Code)(Java Doc)
protected static void setPackage(Package pkg, Context context)(Code)(Java Doc)
public static Object setRange(Object target, Object idx1, Object idx2, Object expr, Context context)(Code)(Java Doc)
public static void setThreadContext(Context context)(Code)(Java Doc)
protected static void setupPropertyChangeListeners(Map table, Context context)(Code)(Java Doc)
public static Object shiftArithmetic(Object n1, Object n2)(Code)(Java Doc)
final protected static Object shiftArithmetic(Object n1, Object n2, Context context)(Code)(Java Doc)
final public static Object shiftLeft(Object n1, Object n2)(Code)(Java Doc)
final protected static Object shiftLeft(Object n1, Object n2, Context context)(Code)(Java Doc)
final public static Object shiftRight(Object n1, Object n2)(Code)(Java Doc)
final protected static Object shiftRight(Object n1, Object n2, Context context)(Code)(Java Doc)
final public static Object subtract(Object n1, Object n2)(Code)(Java Doc)
final protected static Object subtract(Object n1, Object n2, Context context)(Code)(Java Doc)
final public static Object subtract1(Object n)(Code)(Java Doc)
final protected static Object subtract1(Object n, Context context)(Code)(Java Doc)
public static void throwException(Object arg, Context context)(Code)(Java Doc)
public static Boolean toBoolean(Object param)(Code)(Java Doc)
public static Enumeration toEnumeration(Object target, Context context)(Code)(Java Doc)
protected static SimpleNode toFunctionNode(SimpleNode body)(Code)(Java Doc)
public static Object transform(Class type, Object obj)(Code)(Java Doc)
public static Object transform(Class type, Object obj, Context context)(Code)(Java Doc)
public static String unparse(SimpleNode node, Context context)(Code)(Java Doc)
protected static void watchProperty(Map table, Object obj, String property, Object memberTarget, String memberName, Callable rhs)(Code)(Java Doc)
final public static Object xor(Object n1, Object n2)(Code)(Java Doc)
final protected static Object xor(Object n1, Object n2, Context context)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.