Uses of Class
com.blackrook.rookscript.ScriptValue
Package
Description
Contains scripting components for the scripting language.
Contains premade script functions.
Contains the common script functions.
Contains the common I/O script functions.
Contains VM specific structures.
Contains various resolver implementations.
Contains script variable resolvers.
-
Uses of ScriptValue in com.blackrook.rookscript
Modifier and TypeMethodDescriptionstatic ScriptValue
ScriptValue.create
(ScriptValue.Type type, Object value) Creates a script value.static ScriptValue
Creates a script value.static ScriptValue
ScriptValue.createEmptyBuffer
(int size) Creates a script value that is an empty buffer.static ScriptValue
ScriptValue.createEmptyList()
Creates a script value that is an empty list.static ScriptValue
ScriptValue.createEmptyMap()
Creates a script value that is an empty map.static ScriptValue
ScriptValue.createError
(String type, String message) Creates an error value.static ScriptValue
ScriptValue.createError
(String type, String message, String localizedMessage) Creates an error value.static ScriptValue
ScriptValue.createError
(Throwable t) Creates an error value from a Throwable.ScriptIteratorType.IteratorPair.getKey()
ScriptIteratorType.IteratorPair.getValue()
Modifier and TypeMethodDescriptionstatic void
ScriptValue.absolute
(ScriptValue operand, ScriptValue out) Absolute calculation.static void
ScriptValue.add
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Add calculation.void
ScriptValue.ListType.add
(int index, ScriptValue value) Adds an item to the list and expands its size by one.void
ScriptValue.ListType.add
(ScriptValue value) Adds an item to the list and expands its size by one.static void
ScriptValue.and
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Bitwise And calculation.int
ScriptValue.compareTo
(ScriptValue o) static void
ScriptValue.divide
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Divide calculation.static void
ScriptValue.equal
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Logical Equal calculation.boolean
ScriptValue.equals
(ScriptValue value) void
ScriptValue.ListType.get
(int index, ScriptValue out) Gets a value from the list at an index.void
ScriptInstance.getStackValue
(int depth, ScriptValue out) Gets a value on the stack (reference).void
ScriptInstanceStack.getStackValue
(int depthFromTop, ScriptValue out) Gets a value on the stack (reference).boolean
ScriptInstance.getValue
(String name, ScriptValue out) Gets a corresponding script value by name.boolean
ScriptInstanceStack.getValue
(String name, ScriptValue out) Gets a corresponding script value by name.static void
ScriptValue.greater
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Greater-than calculation.static void
ScriptValue.greaterOrEqual
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Greater-than-or-equal calculation.int
ScriptValue.ListType.indexOf
(ScriptValue value) Finds a script value sequentially (strict equals).int
ScriptValue.ListType.lastIndexOf
(ScriptValue value) Finds a script value sequentially, in reverse (strict equals).static void
ScriptValue.leftShift
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Left shift calculation.static void
ScriptValue.less
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Less-than calculation.static void
ScriptValue.lessOrEqual
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Less-than-or-equal calculation.boolean
ScriptValue.listGetByIndex
(int index, ScriptValue out) Gets a value at an index, if it is a list.boolean
ScriptValue.listRemoveAt
(int index, ScriptValue out) Removes a value from this value at an index, if it is a list.static void
ScriptValue.logicalAnd
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Logical And calculation.static void
ScriptValue.logicalNot
(ScriptValue operand, ScriptValue out) Logical not calculation.static void
ScriptValue.logicalOr
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Logical Or calculation.boolean
ScriptValue.mapGet
(String key, ScriptValue out) If this is a map, gets the value that corresponds to a provided key.static void
ScriptValue.modulo
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Modulo calculation.static void
ScriptValue.multiply
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Multiply calculation.static void
ScriptValue.negate
(ScriptValue operand, ScriptValue out) Negate calculation.static void
ScriptValue.not
(ScriptValue operand, ScriptValue out) Bitwise not calculation.static void
ScriptValue.notEqual
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Logical Not Equal calculation.static void
ScriptValue.or
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Bitwise Or calculation.void
ScriptInstance.popStackValue
(ScriptValue out) Pops a value off the stack.void
ScriptInstanceStack.popStackValue
(ScriptValue out) Pops a value off the stack.boolean
ScriptValue.ListType.remove
(ScriptValue value) Finds an object and removes it from the list.boolean
ScriptValue.ListType.removeIndex
(int index, ScriptValue out) Removes an object at an index.static void
ScriptValue.rightShift
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Right shift calculation.static void
ScriptValue.rightShiftPadded
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Right shift padded calculation.int
ScriptValue.ListType.search
(ScriptValue value) Binary searches for a value.void
ScriptValue.set
(ScriptValue value) Sets this value using another value.void
ScriptInstance.setValue
(String name, ScriptValue value) Sets a corresponding script value by name.void
ScriptInstanceStack.setValue
(String name, ScriptValue value) Sets a corresponding script value by name.static void
ScriptValue.strictEqual
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Strict Equal calculation.static void
ScriptValue.strictNotEqual
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Strict Not Equal calculation.static void
ScriptValue.subtract
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Subtract calculation.static void
ScriptValue.xor
(ScriptValue operand, ScriptValue operand2, ScriptValue out) Bitwise XOr calculation. -
Uses of ScriptValue in com.blackrook.rookscript.functions
Modifier and TypeMethodDescriptionabstract boolean
DateFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
DigestFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
FileSystemFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
JSONFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
MathFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
PrintFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
RegexFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
SystemFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
ZipFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) -
Uses of ScriptValue in com.blackrook.rookscript.functions.common
Modifier and TypeMethodDescriptionabstract boolean
BufferFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
ErrorFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
ListFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
MapFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
MiscFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
StringFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) -
Uses of ScriptValue in com.blackrook.rookscript.functions.io
Modifier and TypeMethodDescriptionabstract boolean
DataIOFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
FileIOFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) abstract boolean
StreamingIOFunctions.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) -
Uses of ScriptValue in com.blackrook.rookscript.lang
Modifier and TypeMethodDescriptionboolean
ScriptFunctionType.execute
(ScriptInstance scriptInstance, ScriptValue returnValue) Executes this function. -
Uses of ScriptValue in com.blackrook.rookscript.resolvers
Modifier and TypeMethodDescriptionboolean
ScriptVariableResolver.getValue
(String name, ScriptValue out) Gets the corresponding value for a variable name.void
ScriptVariableResolver.setValue
(String name, ScriptValue value) Sets a key-value pair. -
Uses of ScriptValue in com.blackrook.rookscript.resolvers.variable
Modifier and TypeMethodDescriptionprotected ScriptValue
AbstractVariableResolver.Entry.getValue()
Modifier and TypeMethodDescriptionboolean
AbstractVariableResolver.getValue
(String name, ScriptValue out) boolean
ObjectVariableResolver.getValue
(String name, ScriptValue out) void
AbstractVariableResolver.setValue
(String name, ScriptValue value) void
ObjectVariableResolver.setValue
(String name, ScriptValue value)