Java Doc for Jatha.java in  » Scripting » Jatha » org » jatha » 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 » Jatha » org.jatha 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jatha.Jatha

Jatha
public class Jatha extends Object implements ActionListener(Code)
Jatha is an Applet supporting a subset of Common LISP, with extensions to support some features of Java such as networking and graphical interfaces.

Usage: java org.jatha.Jatha [-nodisplay] [-help]


author:
   Micheal S. Hewett hewett@cs.stanford.edu


Field Summary
public  LispValueAPPEND
    
public static  intAPROPOS_TAB
     JATHA is a pointer to the Applet.
public  LispValueARRAY_TYPE
    
public  LispValueATOM_TYPE
    
public  LispValueBACKQUOTE
    
public  LispValueBIGNUM_TYPE
    
public  LispValueBOOLEAN_TYPE
    
public  LispValueCHARACTER_TYPE
    
public  LispValueCOLON
    
public  LispValueCOMMA_ATSIGN_FN
    
public  LispValueCOMMA_DOT_FN
    
public  LispValueCOMMA_FN
    
public  LispCompilerCOMPILER
     COMPILER is a pointer to a LispCompiler.
public  LispValueCOMPLEX_TYPE
    
public  LispValueCONS
    
public  LispValueCONS_TYPE
    
public  LispValueDOT
    
public  LispValueDOUBLE_FLOAT_TYPE
    
public  LispValueE
    
public  LispEvaluatorEVAL
     EVAL is a pointer to a LISP evaluator.
public  LispValueFLOAT_TYPE
    
public  LispValueFUNCTION_TYPE
    
public  LispValueHASHTABLE_TYPE
    
public  LispValueINTEGER_TYPE
    
public  LispValueLIST
    
public  ListenerLISTENER
     Listener is a pointer to the I/O Window.
 LispValueLOAD_VERBOSE
    
public  SECDMachineMACHINE
     MACHINE is a pointer to the primary SECD abstract machine used for executing compiled LISP code.
public  LispValueMACRO_TYPE
    
 LispValueMAX_LIST_LENGTH
    
static  longMAX_LIST_LENGTH_VALUE
    
public  LispValueNEWLINE
    
public  LispConsOrNilNIL
    
public  LispValueNULL_TYPE
    
public  LispValueNUMBER_TYPE
    
public  LispValueONE
    
public  LispPackagePACKAGE
     PACKAGE is a pointer to the current package (*package*).
public  LispValuePACKAGE_SYMBOL
    
public  LispValuePACKAGE_TYPE
    
public  LispParserPARSER
     PARSER is a pointer to the main parser used by Jatha.
public  LispValuePATHNAME_TYPE
    
public  LispValuePI
    
public  LispValueQUOTE
    
public  LispValueREAL_TYPE
    
public  LispValueSPACE
    
 LispValueSTARSTARSTARSTARSTARSTAR
    
public  LispValueSTREAM_TYPE
    
public  LispValueSTRING
    
public  LispValueSTRING_TYPE
    
public  LispValueSYMBOL_TYPE
    
public  SymbolTableSYMTAB
     SYMTAB is a pointer to the namespace used by LISP. Needed for initialization of the parser.
final public  RuntimeSYSTEM_INFO
     SYSTEM_INFO is a pointer to the Runtime object for this Applet.
public  LispValueT
    
public  LispValueTWO
    
public  LispValueVECTOR_TYPE
    
public  LispValueZERO
    
 LispValuepackages
    
 LispValuepromptuserPrompt
    
 booleanuseConsole
    
 booleanuseGUI
    

Constructor Summary
public  Jatha()
     Create a new Jatha that does not use the GUI, does use the console for I/O and does not display help.
public  Jatha(boolean useGui)
     Create a new Jatha that optionally uses the GUI, does use the console for I/O and does not display help.
public  Jatha(boolean useGui, boolean useText)
     Create a new Jatha that optionally uses the GUI, optionally uses the console for I/O and does not display help.
public  Jatha(boolean useDisplay, boolean useText, boolean showHelp)
     Create a new Jatha that optionally uses the GUI, optionally uses the console for I/O and optionally displays help.

Method Summary
public  voidactionPerformed(ActionEvent event)
     Invoked when an action occurs.
public  LispValueallPackages()
    
public  LispValueapropos(LispValue str, LispValue pkg)
     Prints out all symbols in the given package, or in all packages (if pkg is NIL) that match the given string.
public  LispValuebackquote(LispValue expr)
    
public  LispValuecombineExprs(LispValue left, LispValue right, LispValue expr)
     This is used by f-backquote when expanding a macro.
public  LispPackagedefpackage(LispValue args)
     This is not yet implemented.
public  LispValueeval(String expr)
     Evaluates a LISP expression in a Java string, such as "(* 5 7)".
public  LispValueeval(LispValue inValue)
     Standard LISP eval function.
public  LispValueeval(LispValue inValue, LispValue vars)
     Standard LISP eval function.
Parameters:
  inValue - a parsed LISp expression such as the output from Jatha.parse()
Parameters:
  vars - a nested list of global variables and values, such as (((a .
public  voidexit()
     Use this to exit Jatha.
public  LispValuefindPackage(LispValue packageName)
     Looks up the package on the packages list. Input should be a string, symbol or package.
public  LispValuefindPackage(String packageNameStr)
    
public  longfree()
     This method prints out information on the amount of memory free in the Java space.
public  longfree(PrintStream out)
    
public  voidgc()
     This method causes the Java runtime to performs a GC.
public  voidgc_full()
     This method causes the Java runtime to performs a GC.
public  LispCompilergetCompiler()
     Returns the LISP compiler used by this instance of Jatha.
public  LispEvaluatorgetEval()
     Returns the LISP evaluator used by this instance of Jatha.
public  LispIntegergetMaxListLength()
     Returns the value of *MAX-LIST-LENGTH*.
public  LispParsergetParser()
     Returns the LISP Parser used by this instance of Jatha.
public  SymbolTablegetSymbolTable()
     Returns the Symbol Table used by this instance of Jatha.
public  StringgetVersionDate()
     Returns the date of this version as a string: "nn MONTH yyyy".
public  intgetVersionMajor()
     Returns the major version number, that is, 1 in version 1.2.3.
public  intgetVersionMicro()
     Returns the micro version number, that is, 3 in version 1.2.3.
public  intgetVersionMinor()
     Returns the minor version number, that is, 2 in version 1.2.3.
public  StringgetVersionName()
     Returns the program name, e.g.
public  StringgetVersionString()
     Returns the entire version string.
public  StringgetVersionType()
     Returns the type of release: "production", "beta" or "alpha".
public  StringgetVersionURL()
     Returns a URL where you can find info about Algernon.
public  voidinit()
    
public  voidinitConstants2()
    
public  booleanisType(LispValue object)
     This is used in apropos_print on StandardLispSymbol.
public  voidjavaTrace(boolean on)
     This method turns Java method tracing on.
public  LispValueload(Reader in)
     Loads the contents of a Reader (stream).
public  LispValueload(Reader in, boolean verbose)
     Loads the contents of a Reader (stream).
public  LispValueload(LispValue filenameVal)
     Loads a file.
public  LispValueload(String string)
     Creates a reader from the input string and passes it to load(Reader).
public  LispValueload(String string, boolean verbose)
     Creates a reader from the input string and passes it to load(Reader).
public  LispValueloadFromJar(LispValue filename, LispValue jarFile)
     Loads a file from the container holding this class. The container is normally a JAR file. Uses getResource to create a stream, then calls load(Reader).
Parameters:
  filename - The file to be loaded, without an initial "/".
public  LispValueloadFromJar(String filename, String jarFileString)
     Loads a file from the container holding this class. The container is normally a JAR file. Uses getResource to create a stream, then calls load(Reader).
Parameters:
  filename - The file to be loaded, WITHOUT an initial "/".
Parameters:
  jarFileString - The name of the jar file to load the file from.
public  LispValueloadFromJar(LispValue filename)
     Loads a file from the container holding this class. The container is normally a JAR file. Uses getResource to create a stream, then calls load(Reader).
Parameters:
  filename - The file to be loaded, without an initial "/".
public  LispValueloadFromJar(String filename)
     Loads a file from the container holding this class. The container is normally a JAR file. Uses getResource to create a stream, then calls load(Reader).
Parameters:
  filename - The file to be loaded, WITHOUT an initial "/".
protected  voidloadInitFiles()
     Loads files in the /init directory in Jatha's jar file. They must be named "01.lisp", "02.lisp", etc.
public static  voidmain(String args)
     With no arguments, creates a Jatha LISP Listener window and enables the Console I/O stream.
public  LispConsOrNilmakeAppendList(Collection elements)
     Each element of the collection should be a LispConsOrNil.
public  LispBignummakeBignum(BigInteger value)
     Creates a LispBignum type initialized with the value provided.
public  LispBignummakeBignum(LispInteger value)
    
public  LispBignummakeBignum(double value)
    
public  LispBignummakeBignum(long value)
    
public  LispConsmakeCons(LispValue theCar, LispValue theCdr)
     makeCons(a,b) creates a new Cons cell, initialized with the values a and b as the CAR and CDR respectively.
public  LispSymbolmakeConstant(String symbolName)
     Creates a LispConstant (a type of Symbol whose value can not be changed).
public  LispSymbolmakeConstant(LispString symbolName)
    
public  LispIntegermakeInteger(Long value)
     Creates a LispInteger type initialized with the value provided and returns it.
public  LispIntegermakeInteger(long value)
    
public  LispIntegermakeInteger(Integer value)
    
public  LispIntegermakeInteger(int value)
    
public  LispIntegermakeInteger()
    
public  LispSymbolmakeKeyword(String symbolName)
     Creates a LispKeyword (a type of Symbol that evaluates to itself).
public  LispSymbolmakeKeyword(LispString symbolName)
    
public  LispConsOrNilmakeList(Collection elements)
     Creates a LISP list from the elements of the Collection.
public  LispConsOrNilmakeList(LispValue... parts)
     This is a Java 5-compatible version of makeList that accepts any number of arguments.
public  LispNilmakeNIL(String symbolName)
     Creates a LispNil (the funny symbol/cons that is the LISP NIL).
public  LispNilmakeNIL(LispString symbolName)
    
public  LispConsOrNilmakeNconcList(Collection elements)
     Each element of the collection should be a LispConsOrNil.
public  LispValuemakePackage(LispValue name, LispValue nickNames, LispValue use)
     Creates a package and returns it.
public  LispRealmakeReal(Double value)
     Creates an instance of LispReal initialized with the given value.
public  LispRealmakeReal(double value)
    
public  LispRealmakeReal(Float value)
    
public  LispRealmakeReal(float value)
    
public  LispRealmakeReal()
    
public  LispStringmakeString(String str)
     Creates a LispString from a Java string.
public  LispSymbolmakeSymbol(String symbolName)
     Creates a LispSymbol from a string or LispString.
public  LispSymbolmakeSymbol(LispString symbolName)
    
public  LispValueparse(String s, int caseSensitivity)
     Parses a string and returns the first form in the string.
public  LispValueparse(String s)
     Parses a string and returns the first form in the string.
 voidreadEvalPrintLoop()
    
public  voidsetMaxListLength(long newLength)
     Sets the value of *MAX-LIST-LENGTH*.
public  voidsetMaxListLength(LispNumber newLength)
     Sets the value of *MAX-LIST-LENGTH*.
 voidshowHelp()
    
public  voidstart()
    
public  LispValuetoLisp(Object obj)
     Turns a Java object into a LISP object.

Field Detail
APPEND
public LispValue APPEND(Code)



APROPOS_TAB
public static int APROPOS_TAB(Code)
JATHA is a pointer to the Applet.



ARRAY_TYPE
public LispValue ARRAY_TYPE(Code)



ATOM_TYPE
public LispValue ATOM_TYPE(Code)



BACKQUOTE
public LispValue BACKQUOTE(Code)



BIGNUM_TYPE
public LispValue BIGNUM_TYPE(Code)



BOOLEAN_TYPE
public LispValue BOOLEAN_TYPE(Code)



CHARACTER_TYPE
public LispValue CHARACTER_TYPE(Code)



COLON
public LispValue COLON(Code)



COMMA_ATSIGN_FN
public LispValue COMMA_ATSIGN_FN(Code)



COMMA_DOT_FN
public LispValue COMMA_DOT_FN(Code)



COMMA_FN
public LispValue COMMA_FN(Code)



COMPILER
public LispCompiler COMPILER(Code)
COMPILER is a pointer to a LispCompiler.
See Also:   org.jatha.compile.LispCompiler



COMPLEX_TYPE
public LispValue COMPLEX_TYPE(Code)



CONS
public LispValue CONS(Code)



CONS_TYPE
public LispValue CONS_TYPE(Code)



DOT
public LispValue DOT(Code)



DOUBLE_FLOAT_TYPE
public LispValue DOUBLE_FLOAT_TYPE(Code)



E
public LispValue E(Code)



EVAL
public LispEvaluator EVAL(Code)
EVAL is a pointer to a LISP evaluator. Used for evaluating LISP expressions in Java code.



FLOAT_TYPE
public LispValue FLOAT_TYPE(Code)



FUNCTION_TYPE
public LispValue FUNCTION_TYPE(Code)



HASHTABLE_TYPE
public LispValue HASHTABLE_TYPE(Code)



INTEGER_TYPE
public LispValue INTEGER_TYPE(Code)



LIST
public LispValue LIST(Code)



LISTENER
public Listener LISTENER(Code)
Listener is a pointer to the I/O Window.
See Also:   org.jatha.display.Listener



LOAD_VERBOSE
LispValue LOAD_VERBOSE(Code)



MACHINE
public SECDMachine MACHINE(Code)
MACHINE is a pointer to the primary SECD abstract machine used for executing compiled LISP code.
See Also:   org.jatha.machine.SECDMachine



MACRO_TYPE
public LispValue MACRO_TYPE(Code)



MAX_LIST_LENGTH
LispValue MAX_LIST_LENGTH(Code)



MAX_LIST_LENGTH_VALUE
static long MAX_LIST_LENGTH_VALUE(Code)



NEWLINE
public LispValue NEWLINE(Code)



NIL
public LispConsOrNil NIL(Code)



NULL_TYPE
public LispValue NULL_TYPE(Code)



NUMBER_TYPE
public LispValue NUMBER_TYPE(Code)



ONE
public LispValue ONE(Code)



PACKAGE
public LispPackage PACKAGE(Code)
PACKAGE is a pointer to the current package (*package*). Its SYMTAB is always the curent SYMTAB of Jatha.
See Also:   org.jatha.dynatype.LispPackage



PACKAGE_SYMBOL
public LispValue PACKAGE_SYMBOL(Code)



PACKAGE_TYPE
public LispValue PACKAGE_TYPE(Code)



PARSER
public LispParser PARSER(Code)
PARSER is a pointer to the main parser used by Jatha. Others may be instantiated to deal with String or Stream input.
See Also:   org.jatha.read.LispParser



PATHNAME_TYPE
public LispValue PATHNAME_TYPE(Code)



PI
public LispValue PI(Code)



QUOTE
public LispValue QUOTE(Code)



REAL_TYPE
public LispValue REAL_TYPE(Code)



SPACE
public LispValue SPACE(Code)



STARSTARSTARSTARSTARSTAR
LispValue STARSTARSTARSTARSTARSTAR(Code)



STREAM_TYPE
public LispValue STREAM_TYPE(Code)



STRING
public LispValue STRING(Code)



STRING_TYPE
public LispValue STRING_TYPE(Code)



SYMBOL_TYPE
public LispValue SYMBOL_TYPE(Code)



SYMTAB
public SymbolTable SYMTAB(Code)
SYMTAB is a pointer to the namespace used by LISP. Needed for initialization of the parser. It is always the SYMTAB of the current PACKAGE;
See Also:   org.jatha.dynatype.LispPackage



SYSTEM_INFO
final public Runtime SYSTEM_INFO(Code)
SYSTEM_INFO is a pointer to the Runtime object for this Applet.
See Also:   java.lang.Runtime



T
public LispValue T(Code)



TWO
public LispValue TWO(Code)



VECTOR_TYPE
public LispValue VECTOR_TYPE(Code)



ZERO
public LispValue ZERO(Code)



packages
LispValue packages(Code)



promptuserPrompt
LispValue promptuserPrompt(Code)



useConsole
boolean useConsole(Code)



useGUI
boolean useGUI(Code)




Constructor Detail
Jatha
public Jatha()(Code)
Create a new Jatha that does not use the GUI, does use the console for I/O and does not display help.



Jatha
public Jatha(boolean useGui)(Code)
Create a new Jatha that optionally uses the GUI, does use the console for I/O and does not display help.



Jatha
public Jatha(boolean useGui, boolean useText)(Code)
Create a new Jatha that optionally uses the GUI, optionally uses the console for I/O and does not display help.



Jatha
public Jatha(boolean useDisplay, boolean useText, boolean showHelp)(Code)
Create a new Jatha that optionally uses the GUI, optionally uses the console for I/O and optionally displays help.




Method Detail
actionPerformed
public void actionPerformed(ActionEvent event)(Code)
Invoked when an action occurs.



allPackages
public LispValue allPackages()(Code)



apropos
public LispValue apropos(LispValue str, LispValue pkg)(Code)
Prints out all symbols in the given package, or in all packages (if pkg is NIL) that match the given string. Matching is *NOT* case-sensitive and the string may match a portion of the symbol name.
Parameters:
  str - - a LispString to match
Parameters:
  pkg - - either NIL or a package



backquote
public LispValue backquote(LispValue expr)(Code)
This is used to expand a macro



combineExprs
public LispValue combineExprs(LispValue left, LispValue right, LispValue expr)(Code)
This is used by f-backquote when expanding a macro.



defpackage
public LispPackage defpackage(LispValue args)(Code)
This is not yet implemented. Returns the current value of Jatha.PACKAGE.
Parameters:
  args - is not used Jatha.PACKAGE



eval
public LispValue eval(String expr)(Code)
Evaluates a LISP expression in a Java string, such as "(* 5 7)". To evaluate an expression with variables, there are several options:
 eval("(let ((x 7)) (* 5 x)))");
 eval("(progn (setq x 7) (* 5 x))");
 
Or use separate eval statements:
 eval("setq x 7");
 eval("(* 5 x)");
 



eval
public LispValue eval(LispValue inValue)(Code)
Standard LISP eval function.
Parameters:
  inValue - a parsed LISP expression, such as the output from Jatha.parse().
See Also:   Jatha.parse(String)



eval
public LispValue eval(LispValue inValue, LispValue vars)(Code)
Standard LISP eval function.
Parameters:
  inValue - a parsed LISp expression such as the output from Jatha.parse()
Parameters:
  vars - a nested list of global variables and values, such as (((a . 3) (b . 5)) ((c . 10)))
See Also:   Jatha.parse(String)



exit
public void exit()(Code)
Use this to exit Jatha.



findPackage
public LispValue findPackage(LispValue packageName)(Code)
Looks up the package on the packages list. Input should be a string, symbol or package. All names and nicknames are searched.
Parameters:
  packageName - a LISP string or keyword LispValue the package, or NIL



findPackage
public LispValue findPackage(String packageNameStr)(Code)



free
public long free()(Code)
This method prints out information on the amount of memory free in the Java space. It optionally takes an PrintStream as an argument, but defaults to System.out.
See Also:   java.lang.Runtime void



free
public long free(PrintStream out)(Code)



gc
public void gc()(Code)
This method causes the Java runtime to performs a GC.
See Also:   java.lang.Runtime



gc_full
public void gc_full()(Code)
This method causes the Java runtime to performs a GC. It calls the runFinalization() method first, in order to reclaim as much memory as possible.
See Also:   java.lang.Runtime



getCompiler
public LispCompiler getCompiler()(Code)
Returns the LISP compiler used by this instance of Jatha.



getEval
public LispEvaluator getEval()(Code)
Returns the LISP evaluator used by this instance of Jatha.



getMaxListLength
public LispInteger getMaxListLength()(Code)
Returns the value of *MAX-LIST-LENGTH*. This value is only used to prevent runaway list processing.



getParser
public LispParser getParser()(Code)
Returns the LISP Parser used by this instance of Jatha.



getSymbolTable
public SymbolTable getSymbolTable()(Code)
Returns the Symbol Table used by this instance of Jatha.



getVersionDate
public String getVersionDate()(Code)
Returns the date of this version as a string: "nn MONTH yyyy".



getVersionMajor
public int getVersionMajor()(Code)
Returns the major version number, that is, 1 in version 1.2.3.



getVersionMicro
public int getVersionMicro()(Code)
Returns the micro version number, that is, 3 in version 1.2.3.



getVersionMinor
public int getVersionMinor()(Code)
Returns the minor version number, that is, 2 in version 1.2.3.



getVersionName
public String getVersionName()(Code)
Returns the program name, e.g. Algernon.



getVersionString
public String getVersionString()(Code)
Returns the entire version string. a string containing the entire description of Algernon.



getVersionType
public String getVersionType()(Code)
Returns the type of release: "production", "beta" or "alpha".



getVersionURL
public String getVersionURL()(Code)
Returns a URL where you can find info about Algernon.



init
public void init()(Code)



initConstants2
public void initConstants2()(Code)



isType
public boolean isType(LispValue object)(Code)
This is used in apropos_print on StandardLispSymbol. Not really for public consumption.
Parameters:
  object - a LispSymbol true if it is equal to ARRAY_TYPE, ATOM_TYPE, etc.



javaTrace
public void javaTrace(boolean on)(Code)
This method turns Java method tracing on. Right now, this doesn't seem to do anything, but perhaps we need to compile with debugging turned on.
See Also:   java.lang.Runtime
Parameters:
  on -



load
public LispValue load(Reader in) throws IOException, CompilerException(Code)
Loads the contents of a Reader (stream). Useful for loading from a jar file. Contributed by Stephen Starkey.



load
public LispValue load(Reader in, boolean verbose) throws IOException, CompilerException(Code)
Loads the contents of a Reader (stream). Useful for loading from a jar file. Contributed by Stephen Starkey.



load
public LispValue load(LispValue filenameVal)(Code)
Loads a file. Argument is guaranteed to be a LispString.



load
public LispValue load(String string)(Code)
Creates a reader from the input string and passes it to load(Reader). Verbose is false.



load
public LispValue load(String string, boolean verbose)(Code)
Creates a reader from the input string and passes it to load(Reader).



loadFromJar
public LispValue loadFromJar(LispValue filename, LispValue jarFile)(Code)
Loads a file from the container holding this class. The container is normally a JAR file. Uses getResource to create a stream, then calls load(Reader).
Parameters:
  filename - The file to be loaded, without an initial "/". Will be converted to a Java String using toStringSimple.
Parameters:
  jarFile - The URL of the jar file from which to load the resource. T if the file was successfully loaded, NIL if the file doesn't exist and a String containing an error message otherwise.



loadFromJar
public LispValue loadFromJar(String filename, String jarFileString)(Code)
Loads a file from the container holding this class. The container is normally a JAR file. Uses getResource to create a stream, then calls load(Reader).
Parameters:
  filename - The file to be loaded, WITHOUT an initial "/".
Parameters:
  jarFileString - The name of the jar file to load the file from. T if the file was successfully loaded, NIL if the file doesn't exist and a String containing an error message otherwise.



loadFromJar
public LispValue loadFromJar(LispValue filename)(Code)
Loads a file from the container holding this class. The container is normally a JAR file. Uses getResource to create a stream, then calls load(Reader).
Parameters:
  filename - The file to be loaded, without an initial "/". Will be converted to a Java String using toStringSimple. T if the file was successfully loaded, NIL if the file doesn't exist and a String containing an error message otherwise.



loadFromJar
public LispValue loadFromJar(String filename)(Code)
Loads a file from the container holding this class. The container is normally a JAR file. Uses getResource to create a stream, then calls load(Reader).
Parameters:
  filename - The file to be loaded, WITHOUT an initial "/". T if the file was successfully loaded, NIL if the file doesn't exist and a String containing an error message otherwise.



loadInitFiles
protected void loadInitFiles()(Code)
Loads files in the /init directory in Jatha's jar file. They must be named "01.lisp", "02.lisp", etc. Numbers must be sequential starting from "01".



main
public static void main(String args)(Code)
With no arguments, creates a Jatha LISP Listener window and enables the Console I/O stream. The user can optionally specify -nodisplay to use the console for input.
Parameters:
  args -



makeAppendList
public LispConsOrNil makeAppendList(Collection elements)(Code)
Each element of the collection should be a LispConsOrNil. The elements will be non-destructively appended to each other. The result is one list. Note that this operation is expensive in terms of storage.



makeBignum
public LispBignum makeBignum(BigInteger value)(Code)
Creates a LispBignum type initialized with the value provided.
See Also:   LispBignum
See Also:   java.math.BigInteger



makeBignum
public LispBignum makeBignum(LispInteger value)(Code)



makeBignum
public LispBignum makeBignum(double value)(Code)



makeBignum
public LispBignum makeBignum(long value)(Code)



makeCons
public LispCons makeCons(LispValue theCar, LispValue theCdr)(Code)
makeCons(a,b) creates a new Cons cell, initialized with the values a and b as the CAR and CDR respectively.
See Also:   LispCons
Parameters:
  theCar -
Parameters:
  theCdr - LispValue



makeConstant
public LispSymbol makeConstant(String symbolName)(Code)
Creates a LispConstant (a type of Symbol whose value can not be changed). This method does not intern the symbol.
See Also:   LispConstant
See Also:   LispSymbol
See Also:   LispValue LispSymbol



makeConstant
public LispSymbol makeConstant(LispString symbolName)(Code)



makeInteger
public LispInteger makeInteger(Long value)(Code)
Creates a LispInteger type initialized with the value provided and returns it.
See Also:   LispInteger
See Also:   LispValue LispInteger



makeInteger
public LispInteger makeInteger(long value)(Code)



makeInteger
public LispInteger makeInteger(Integer value)(Code)



makeInteger
public LispInteger makeInteger(int value)(Code)



makeInteger
public LispInteger makeInteger()(Code)



makeKeyword
public LispSymbol makeKeyword(String symbolName)(Code)
Creates a LispKeyword (a type of Symbol that evaluates to itself). This method does not intern the symbol.
See Also:   LispKeyword
See Also:   LispConstant
See Also:   LispSymbol
See Also:   LispValue LispSymbol



makeKeyword
public LispSymbol makeKeyword(LispString symbolName)(Code)



makeList
public LispConsOrNil makeList(Collection elements)(Code)
Creates a LISP list from the elements of the Collection. which must be LispValue types.
See Also:   LispValue



makeList
public LispConsOrNil makeList(LispValue... parts)(Code)
This is a Java 5-compatible version of makeList that accepts any number of arguments. Returns NIL if no arguments are passed. makeList(NIL) returns (NIL) - a list containing NIL.



makeNIL
public LispNil makeNIL(String symbolName)(Code)
Creates a LispNil (the funny symbol/cons that is the LISP NIL). This method does not intern the symbol.
See Also:   LispNil
See Also:   LispCons
See Also:   LispSymbol
See Also:   LispValue LispSymbol



makeNIL
public LispNil makeNIL(LispString symbolName)(Code)



makeNconcList
public LispConsOrNil makeNconcList(Collection elements)(Code)
Each element of the collection should be a LispConsOrNil. The elements will be destructively appended to each other. The result is one list.



makePackage
public LispValue makePackage(LispValue name, LispValue nickNames, LispValue use)(Code)
Creates a package and returns it. If it already exists, a cerror is reported.
Parameters:
  name - the name of the package. may be a string or a symbol
Parameters:
  nickNames - a list of nicknames. the content must be strings or symbols
Parameters:
  use - a list of package names to use. may be strings or symbols. Jatha.PACKAGE



makeReal
public LispReal makeReal(Double value)(Code)
Creates an instance of LispReal initialized with the given value.
See Also:   LispInteger
See Also:   LispValue LispReal



makeReal
public LispReal makeReal(double value)(Code)



makeReal
public LispReal makeReal(Float value)(Code)



makeReal
public LispReal makeReal(float value)(Code)



makeReal
public LispReal makeReal()(Code)



makeString
public LispString makeString(String str)(Code)
Creates a LispString from a Java string.
See Also:   LispString
See Also:   LispValue LispString



makeSymbol
public LispSymbol makeSymbol(String symbolName)(Code)
Creates a LispSymbol from a string or LispString. This method does not intern the symbol.
See Also:   LispSymbol
See Also:   LispValue LispSymbol



makeSymbol
public LispSymbol makeSymbol(LispString symbolName)(Code)



parse
public LispValue parse(String s, int caseSensitivity) throws EOFException(Code)
Parses a string and returns the first form in the string.
caseSensitivity:
  • LispParser.UPCASE (the default)
  • LispParser.DOWNCASE
  • LispParser.PRESERVE



parse
public LispValue parse(String s) throws EOFException(Code)
Parses a string and returns the first form in the string.



readEvalPrintLoop
void readEvalPrintLoop()(Code)



setMaxListLength
public void setMaxListLength(long newLength)(Code)
Sets the value of *MAX-LIST-LENGTH*. This vlaue is only used to prevent runaway list processing.



setMaxListLength
public void setMaxListLength(LispNumber newLength)(Code)
Sets the value of *MAX-LIST-LENGTH*. This vlaue is only used to prevent runaway list processing.



showHelp
void showHelp()(Code)



start
public void start()(Code)



toLisp
public LispValue toLisp(Object obj)(Code)
Turns a Java object into a LISP object.
Parameters:
  obj -



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.