Uses of Class
com.blackrook.rookscript.ScriptInstanceBuilder
Package
Description
Contains scripting components for the scripting language.
-
Uses of ScriptInstanceBuilder in com.blackrook.rookscript
Modifier and TypeMethodDescriptionScriptInstanceBuilder.andFunctionResolver
(ScriptFunctionResolver resolver) Adds a function resolver to this builder to be used in the script.ScriptInstanceBuilder.andFunctionResolver
(String namespace, ScriptFunctionResolver resolver) Adds a function resolver to this builder to be used in the script.ScriptInstanceBuilder.andScope
(String name, ScriptVariableResolver resolver) Adds a scope to be used in the script.static ScriptInstanceBuilder
ScriptInstance.createBuilder()
Returns a new builder for creating a new script instance piece by piece.ScriptInstanceBuilder.usingReaderIncluder
(ScriptReaderIncluder includer) Adds the optional reader includer to use for compiling code.ScriptInstanceBuilder.usingReaderOptions
(ScriptReaderOptions options) Adds the optional reader options to use for compiling code.ScriptInstanceBuilder.withEnvironment
(ScriptEnvironment environment) Sets the script environment for this script.ScriptInstanceBuilder.withFunctionResolver
(ScriptFunctionResolver resolver) Adds a function resolver to this builder to be used in the script, clearing all resolvers first. Each instance created will use the resolvers added for compiling and runtime.ScriptInstanceBuilder.withFunctionResolver
(String namespace, ScriptFunctionResolver resolver) Adds a function resolver to this builder to be used in the script, clearing all resolvers first. Each instance created will use the resolvers added for compiling and runtime.ScriptInstanceBuilder.withRunawayLimit
(int runawayLimit) Sets the runaway limit for the instance.ScriptInstanceBuilder.withScope
(String name, ScriptVariableResolver resolver) Adds a scope to be used in the script, clearing the set of scopes first.ScriptInstanceBuilder.withScript
(Script script) Attaches the script used for this instance.ScriptInstanceBuilder.withScriptStack
(int activationDepth, int valueStackDepth) Attaches a new script instance stack used for this instance.ScriptInstanceBuilder.withScriptStack
(ScriptInstanceStack stack) Attaches a script instance stack for this instance.ScriptInstanceBuilder.withSource
(File sourceFile) Attaches script source to compile on instantiation.ScriptInstanceBuilder.withSource
(String sourceData) Attaches script source to compile on instantiation.ScriptInstanceBuilder.withSource
(String streamPath, InputStream sourceStream) Attaches script input stream source to compile on instantiation.ScriptInstanceBuilder.withSource
(String streamPath, Reader sourceReader) Attaches script source to compile on instantiation.ScriptInstanceBuilder.withSource
(String sourcePath, String sourceData) Attaches script source to compile on instantiation.ScriptInstanceBuilder.withWaitHandler
(ScriptWaitHandler waitHandler) Sets the wait handler for the script instance.