| Package | Description |
|---|---|
| com.scriptbasic.api |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
Subroutine.call() |
Call a subroutine without any argument.
|
java.lang.Object |
Subroutine.call(java.lang.Object... args) |
Call the subroutine.
|
void |
ScriptBasic.eval(java.io.File sourceFile) |
Evaluate the content of a file.
|
void |
ScriptBasic.eval(java.io.Reader reader) |
Read the content of a stream provided by the reader and interpret this as
a BASIC program.
|
void |
ScriptBasic.eval(java.lang.String sourceCode) |
Evaluate a string as a BASIC program.
|
void |
ScriptBasic.eval(java.lang.String sourceFileName,
com.scriptbasic.interfaces.SourcePath path) |
Read the content of the file and execute it.
|
void |
ScriptBasic.eval(java.lang.String sourceName,
com.scriptbasic.interfaces.SourceProvider provider) |
Read the content of the source from the file, db...
|
void |
ScriptBasic.eval(java.lang.String sourceFileName,
java.lang.String... path) |
Read the content of the file and execute it.
|
void |
ScriptBasic.execute() |
Execute a previously loaded code.
|
Subroutine |
ScriptBasic.getSubroutine(java.lang.String subroutineName) |
Get the subroutine object of a named subroutine.
|
java.lang.Object |
ScriptBasic.getVariable(java.lang.String name) |
Get the value of a global variable after the BASIC program was executed.
|
void |
ScriptBasic.load(java.io.File sourceFile) |
Evaluate the content of a file.
|
void |
ScriptBasic.load(java.io.Reader reader) |
Read the content of a stream provided by the reader and interpret this as
a BASIC program.
|
void |
ScriptBasic.load(java.lang.String sourceCode) |
Load a string as a BASIC program.
|
void |
ScriptBasic.load(java.lang.String sourceFileName,
com.scriptbasic.interfaces.SourcePath path) |
Read the content of the file and execute it.
|
void |
ScriptBasic.load(java.lang.String sourceName,
com.scriptbasic.interfaces.SourceProvider provider) |
Read the content of the source from the file, db...
|
void |
ScriptBasic.load(java.lang.String sourceFileName,
java.lang.String... path) |
Read the content of the file and execute it.
|
void |
ScriptBasic.registerExtension(java.lang.Class<?> klass) |
Register the static methods of the class as BASIC functions.
|
void |
ScriptBasic.registerFunctions(java.lang.Class<?> klass) |
Register all annotated methods of the class
klass so that they
can be accessed from BASIC. |
void |
ScriptBasic.setVariable(java.lang.String name,
java.lang.Object value) |
Set the value of a global variable of the BASIC program.
|
Copyright © 2017 Verhas and Verhas Software Craftsmen. All Rights Reserved.