Uses of Class
com.blackrook.rookscript.Script
Package
Description
Contains scripting components for the scripting language.
Contains all of the compiler stuff for script creation/disassembly.
-
Uses of Script in com.blackrook.rookscript
Modifier and TypeMethodDescriptionScriptInstance.getScript()
Gets this instance's script reference.static Script
Optimizes a script.Modifier and TypeMethodDescriptionstatic void
ScriptAssembler.disassemble
(Script script, Writer writer) Disassembles a script into a text representation.static Script
Optimizes a script.ScriptInstanceBuilder.withScript
(Script script) Attaches the script used for this instance.ModifierConstructorDescriptionScriptInstance
(Script script, ScriptInstanceStack scriptInstanceStack, ScriptEnvironment environment) Creates a new script instance, no wait handler, default runaway limit.ScriptInstance
(Script script, ScriptInstanceStack scriptInstanceStack, ScriptEnvironment environment, int runawayLimit) Creates a new script instance, no wait handler.ScriptInstance
(Script script, ScriptInstanceStack scriptInstanceStack, ScriptWaitHandler waitHandler, ScriptEnvironment environment, int runawayLimit) Creates a new script instance.ScriptInstanceFactory
(Script script, int activationDepth, int stackDepth, ScriptEnvironment environment) Creates a new instance factory.ScriptInstanceFactory
(Script script, int activationDepth, int stackDepth, ScriptEnvironment environment, int runawayLimit) Creates a new instance factory.ScriptInstanceFactory
(Script script, int activationDepth, int stackDepth, ScriptWaitHandler waitHandler, ScriptEnvironment environment) Creates a new instance factory.ScriptInstanceFactory
(Script script, int activationDepth, int stackDepth, ScriptWaitHandler waitHandler, ScriptEnvironment environment, int runawayLimit) Creates a new instance factory.ScriptInstanceFactory
(Script script, ScriptEnvironment environment) Creates a new instance factory, default depths. -
Uses of Script in com.blackrook.rookscript.compiler
Modifier and TypeMethodDescriptionstatic Script
ScriptReader.read
(File file, ScriptHostFunctionResolver functionResolver) Reads a script from a starting text file.static Script
ScriptReader.read
(File file, ScriptHostFunctionResolver functionResolver, ScriptReaderIncluder includer) Reads a script from a starting text file.static Script
ScriptReader.read
(File file, ScriptHostFunctionResolver functionResolver, ScriptReaderIncluder includer, ScriptReaderOptions options) Reads a script from a starting text file.static Script
ScriptReader.read
(File file, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver) Reads a script from a starting text file.static Script
ScriptReader.read
(File file, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver, ScriptReaderIncluder includer) Reads a script from a starting text file.static Script
ScriptReader.read
(File file, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver, ScriptReaderIncluder includer, ScriptReaderOptions options) Reads a script from a starting text file.static Script
ScriptReader.read
(String text, ScriptHostFunctionResolver functionResolver) Reads a script from a String of text.static Script
ScriptReader.read
(String text, ScriptHostFunctionResolver functionResolver, ScriptReaderIncluder includer) Reads a script from a String of text.static Script
ScriptReader.read
(String text, ScriptHostFunctionResolver functionResolver, ScriptReaderIncluder includer, ScriptReaderOptions options) Reads a script from a String of text.static Script
ScriptReader.read
(String text, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver) Reads a script from a String of text.static Script
ScriptReader.read
(String text, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver, ScriptReaderIncluder includer) Reads a script from a String of text.static Script
ScriptReader.read
(String text, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver, ScriptReaderIncluder includer, ScriptReaderOptions options) Reads a script from a String of text.static Script
ScriptReader.read
(String streamName, InputStream in, ScriptHostFunctionResolver functionResolver) Reads a script.static Script
ScriptReader.read
(String streamName, InputStream in, ScriptHostFunctionResolver functionResolver, ScriptReaderIncluder includer) Reads a script.static Script
ScriptReader.read
(String streamName, InputStream in, ScriptHostFunctionResolver functionResolver, ScriptReaderIncluder includer, ScriptReaderOptions options) Reads a script.static Script
ScriptReader.read
(String streamName, InputStream in, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver) Reads a script.static Script
ScriptReader.read
(String streamName, InputStream in, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver, ScriptReaderIncluder includer) Reads a script.static Script
ScriptReader.read
(String streamName, InputStream in, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver, ScriptReaderIncluder includer, ScriptReaderOptions options) Reads a script.static Script
ScriptReader.read
(String streamName, Reader reader, ScriptHostFunctionResolver functionResolver) Reads a script from a reader stream.static Script
ScriptReader.read
(String streamName, Reader reader, ScriptHostFunctionResolver functionResolver, ScriptReaderIncluder includer) Reads a script from a reader stream.static Script
ScriptReader.read
(String streamName, Reader reader, ScriptHostFunctionResolver functionResolver, ScriptReaderIncluder includer, ScriptReaderOptions options) Reads a script from a reader stream.static Script
ScriptReader.read
(String streamName, Reader reader, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver) Reads a script from a reader stream.static Script
ScriptReader.read
(String streamName, Reader reader, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver, ScriptReaderIncluder includer) Reads a script from a reader stream.static Script
ScriptReader.read
(String streamName, Reader reader, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver, ScriptReaderIncluder includer, ScriptReaderOptions options) Reads a script from a reader stream.static Script
ScriptReader.read
(String streamName, String text, ScriptHostFunctionResolver functionResolver) Reads a script from a String of text.static Script
ScriptReader.read
(String streamName, String text, ScriptHostFunctionResolver functionResolver, ScriptReaderIncluder includer) Reads a script from a String of text.static Script
ScriptReader.read
(String streamName, String text, ScriptHostFunctionResolver functionResolver, ScriptReaderIncluder includer, ScriptReaderOptions options) Reads a script from a String of text.static Script
ScriptReader.read
(String streamName, String text, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver) Reads a script from a String of text.static Script
ScriptReader.read
(String streamName, String text, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver, ScriptReaderIncluder includer) Reads a script from a String of text.static Script
ScriptReader.read
(String streamName, String text, ScriptHostFunctionResolver functionResolver, ScriptScopeResolver scopeResolver, ScriptReaderIncluder includer, ScriptReaderOptions options) Reads a script from a String of text.Modifier and TypeMethodDescriptionprotected int
Marks a label on the current command.boolean
ScriptParser.parseEntryPoint
(Script script, boolean checkMode) Parses a single entry point (as though the token "entry" was already parsed).boolean
ScriptParser.parseFunctionEntry
(Script script, boolean checkMode) Parses a single function entry (as though the token "function" was already parsed).boolean
ScriptParser.parseScript
(Script script) Parses a script from the current token until the end of the token stream is reached or an error is encountered or an exception is thrown.ScriptParser.parseScriptlet
(Script script) Parses a scriptlet into an existing script.void
ScriptParser.readScript
(Script script) Starts parsing a script.