Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accept(Expr.Visitor<R>) - Method in interface technology.sola.script.parser.Expr
-
Evaluate this expression via the desired
Expr.Visitor - accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.Assign
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.Binary
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.Call
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.CallOptional
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.Get
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.GetOptional
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.Grouping
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.Literal
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.Logical
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.NullishCoalescence
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.Set
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.Ternary
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.Unary
- accept(Expr.Visitor<R>) - Method in record class technology.sola.script.parser.Expr.Variable
- accept(Stmt.Visitor<R>) - Method in interface technology.sola.script.parser.Stmt
-
Executes this statement via the desired
Stmt.Visitor - accept(Stmt.Visitor<R>) - Method in record class technology.sola.script.parser.Stmt.Block
- accept(Stmt.Visitor<R>) - Method in record class technology.sola.script.parser.Stmt.Expression
- accept(Stmt.Visitor<R>) - Method in record class technology.sola.script.parser.Stmt.Function
- accept(Stmt.Visitor<R>) - Method in record class technology.sola.script.parser.Stmt.If
- accept(Stmt.Visitor<R>) - Method in record class technology.sola.script.parser.Stmt.Return
- accept(Stmt.Visitor<R>) - Method in record class technology.sola.script.parser.Stmt.Val
- accept(Stmt.Visitor<R>) - Method in record class technology.sola.script.parser.Stmt.Var
- accept(Stmt.Visitor<R>) - Method in record class technology.sola.script.parser.Stmt.While
- addError(ScriptError) - Method in class technology.sola.script.error.ErrorContainer
-
Adds an error to the collection.
- addErrors(Collection<ScriptError>) - Method in class technology.sola.script.error.ErrorContainer
-
Adds a collection of errors to the collection.
- ALREADY_DEFINED_VARIABLE - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Semantic error when a variable was already defined in this scope.
- AMP_AMP - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - "&&"
- arguments() - Method in record class technology.sola.script.parser.Expr.Call
-
Returns the value of the
argumentsrecord component. - arguments() - Method in record class technology.sola.script.parser.Expr.CallOptional
-
Returns the value of the
argumentsrecord component. - arity() - Method in interface technology.sola.script.runtime.SolaScriptCallable
-
The number of expected arguments.
- arity() - Method in class technology.sola.script.runtime.SolaScriptFunction
- assign(Expr.Assign) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.Assignexpression and returns the value. - Assign(Token, Expr) - Constructor for record class technology.sola.script.parser.Expr.Assign
-
Creates an instance of a
Assignrecord class. - assignVariable(Expr.Assign, Object) - Method in class technology.sola.script.runtime.ScriptRuntime
-
Assigns a variable's value utilizing the variable resolutions in the
ScopeTablefor the runtime.
B
- BANG - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - "!"
- BANG_EQUAL - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - "!="
- BAR_BAR - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - "||"
- beginScope() - Method in class technology.sola.script.runtime.ScopeTable
-
Begins a new scope for variables to be resolved.
- binary(Expr.Binary) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.Binaryexpression and returns the value. - Binary(Expr, Token, Expr) - Constructor for record class technology.sola.script.parser.Expr.Binary
-
Creates an instance of a
Binaryrecord class. - block(Stmt.Block) - Method in interface technology.sola.script.parser.Stmt.Visitor
-
Executes a
Stmt.Blockand returns the value. - Block(List<Stmt>) - Constructor for record class technology.sola.script.parser.Stmt.Block
-
Creates an instance of a
Blockrecord class. - body() - Method in record class technology.sola.script.parser.Stmt.Function
-
Returns the value of the
bodyrecord component. - body() - Method in record class technology.sola.script.parser.Stmt.While
-
Returns the value of the
bodyrecord component.
C
- call(List<Object>) - Method in interface technology.sola.script.runtime.SolaScriptCallable
-
Calls the function passing along the arguments for the call and returning an evaluated value.
- call(List<Object>) - Method in class technology.sola.script.runtime.SolaScriptFunction
- call(Expr.Call) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.Callexpression and returns the value. - Call(Expr, Token, List<Expr>) - Constructor for record class technology.sola.script.parser.Expr.Call
-
Creates an instance of a
Callrecord class. - callee() - Method in record class technology.sola.script.parser.Expr.Call
-
Returns the value of the
calleerecord component. - callee() - Method in record class technology.sola.script.parser.Expr.CallOptional
-
Returns the value of the
calleerecord component. - callOptional(Expr.CallOptional) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.CallOptionalexpression and returns the value. - CallOptional(Expr, Token, List<Expr>) - Constructor for record class technology.sola.script.parser.Expr.CallOptional
-
Creates an instance of a
CallOptionalrecord class. - CANNOT_ASSIGN_TO_CONSTANT - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Semantic error when a constant is attempted to be assigned to.
- CANNOT_RETURN_FROM_TOP_LEVEL - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Semantic error when a return statement is found outside a function body.
- clock() - Method in class technology.sola.script.library.StandardLibraryScriptModule
-
clock
- COLON - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single character token - ":"
- column() - Method in record class technology.sola.script.error.ScriptError
-
Returns the value of the
columnrecord component. - column() - Method in record class technology.sola.script.tokenizer.Token
-
Returns the value of the
columnrecord component. - COMMA - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single character token - ","
- condition() - Method in record class technology.sola.script.parser.Expr.Ternary
-
Returns the value of the
conditionrecord component. - condition() - Method in record class technology.sola.script.parser.Stmt.If
-
Returns the value of the
conditionrecord component. - condition() - Method in record class technology.sola.script.parser.Stmt.While
-
Returns the value of the
conditionrecord component. - constants() - Method in interface technology.sola.script.library.ScriptModule
-
Gets the constant definitions within this module.
- constants() - Method in class technology.sola.script.library.StandardLibraryScriptModule
- createNestedEnvironment() - Method in class technology.sola.script.runtime.ScriptRuntime
-
Creates a nested environment with the previous environment as its parent.
D
- declare(Token) - Method in class technology.sola.script.runtime.ScopeTable
-
Marks a variable as declared for the current scope.
- define(String) - Method in class technology.sola.script.runtime.ScopeTable
-
Marks a variable is defined for the current scope.
- define(Token) - Method in class technology.sola.script.runtime.ScopeTable
-
Marks a variable is defined for the current scope.
- defineConstant(String, Object) - Method in class technology.sola.script.runtime.ScriptRuntime
-
Defines a constant with desired value in the current environment.
- defineVariable(String, Object) - Method in class technology.sola.script.runtime.ScriptRuntime
-
Defines a variable with desired value in the current environment.
- DOT - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single character token - "."
E
- ELSE - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Keyword - "else"
- elseBranch() - Method in record class technology.sola.script.parser.Stmt.If
-
Returns the value of the
elseBranchrecord component. - endScope() - Method in class technology.sola.script.runtime.ScopeTable
-
Ends the current scope for variables to be resolved.
- EnvironmentHandle - Class in technology.sola.script.runtime
-
EnvironmentHandle holds an internal reference to environment state information where variable values are stored.
- EOF - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Special end of file
- EQUAL - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - "="
- EQUAL_EQUAL - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - "=="
- equals(Object) - Method in record class technology.sola.script.error.ScriptError
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.Assign
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.Binary
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.Call
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.CallOptional
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.Get
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.GetOptional
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.Grouping
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.Literal
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.Logical
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.NullishCoalescence
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.Set
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.Ternary
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.Unary
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Expr.Variable
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.ParserResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Stmt.Block
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Stmt.Expression
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Stmt.Function
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Stmt.If
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Stmt.Return
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Stmt.Val
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Stmt.Var
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.parser.Stmt.While
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.tokenizer.Token
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class technology.sola.script.tokenizer.TokenizeResult
-
Indicates whether some other object is "equal to" this one.
- errorArgs() - Method in record class technology.sola.script.error.ScriptError
-
Returns the value of the
errorArgsrecord component. - ErrorContainer - Class in technology.sola.script.error
-
ErrorContainer contains a list of
ScriptErrors found for a particular script. - ErrorContainer() - Constructor for class technology.sola.script.error.ErrorContainer
- errors() - Method in record class technology.sola.script.parser.ParserResult
-
Returns the value of the
errorsrecord component. - errors() - Method in record class technology.sola.script.tokenizer.TokenizeResult
-
Returns the value of the
errorsrecord component. - errorsArgs - Variable in exception technology.sola.script.error.ScriptInterpretationException
-
The additional details about the error.
- errorType - Variable in exception technology.sola.script.error.ScriptInterpretationException
-
The
ScriptErrorTypeof the error. - Exception(Object) - Constructor for exception technology.sola.script.parser.Stmt.Return.Exception
-
Creates an instance of this exception with desired return value.
- execute(String) - Method in class technology.sola.script.SolaScript
-
Executes a sola script using the current state of the
SolaScriptruntime. - EXPECT_BRACE_AFTER_BLOCK - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a closing '}' is not found after a block.
- EXPECT_BRACE_AFTER_MAP_CREATION - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a closing '}' is not found after creation of a map.
- EXPECT_BRACE_BEFORE_FUNCTION_BODY - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when an opening brace is not found before a function body.
- EXPECT_COLON_AFTER_TERNARY_TRUE_EXPR - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a ternary operator has been started, but a colon was not found after its true expression.
- EXPECT_EXPRESSION - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when an expression is expected, but not found.
- EXPECT_INITIALIZER_EXPRESSION - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when an initializer expression is not found for a constant.
- EXPECT_NAME - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a name for a function or variable is expected.
- EXPECT_PAREN_AFTER_ARGUMENTS - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a closing parenthesis was not found after function arguments.
- EXPECT_PAREN_AFTER_CONDITION - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a closing parenthesis was not found after an if statement's condition.
- EXPECT_PAREN_AFTER_EXPRESSION - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a closing parenthesis was not found after an expression that followed an open parenthesis.
- EXPECT_PAREN_AFTER_FUNCTION_NAME - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when an opening parenthesis was not found after a function name.
- EXPECT_PAREN_AFTER_IF - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when an opening parenthesis is not found after an if statement is started.
- EXPECT_PAREN_AFTER_PARAMETERS - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a closing parenthesis was not found after function parameters.
- EXPECT_PAREN_AFTER_WHILE - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when an opening parenthesis is not found after a while statement is started.
- EXPECT_PROPERTY_NAME_AFTER_DOT - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a property name was not found after a '.' property accessor.
- EXPECT_SEMI_AFTER_EXPRESSION - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a semicolon was not found after an expression statement.
- EXPECT_SEMI_AFTER_RETURN_VALUE - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a semicolon was not found after return value.
- EXPECT_SEMI_AFTER_VARIABLE_DECLARATION - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a semicolon was not found after a variable declaration.
- EXPECTED_ARGUMENTS_MISMATCH - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Runtime error when expected number of arguments were not provided.
- expr() - Method in record class technology.sola.script.parser.Stmt.Expression
-
Returns the value of the
exprrecord component. - Expr - Interface in technology.sola.script.parser
-
Expr represents code that evaluates to a value.
- Expr.Assign - Record Class in technology.sola.script.parser
-
Expression that assigns a value to a variable.
- Expr.Binary - Record Class in technology.sola.script.parser
-
Expression for binary operators that operate on two expression (such as "+" to sum numbers).
- Expr.Call - Record Class in technology.sola.script.parser
-
Expression that calls a
SolaScriptCallablewith desired arguments. - Expr.CallOptional - Record Class in technology.sola.script.parser
-
Expression that calls a
SolaScriptCallablewith desired arguments. - Expr.Get - Record Class in technology.sola.script.parser
-
Expression that gets a property from a
SolaScriptMapand returns its. - Expr.GetOptional - Record Class in technology.sola.script.parser
-
Expression that gets a property from a
SolaScriptMapand returns its. - Expr.Grouping - Record Class in technology.sola.script.parser
-
Grouping expressions warps an expression to change when it is evaluated.
- Expr.Literal - Record Class in technology.sola.script.parser
-
Literal expressions hold a value such as string, number, boolean, map or null.
- Expr.Logical - Record Class in technology.sola.script.parser
-
Expression for logical operators that operate on two expression (such as "||" to evaluate a logical or).
- Expr.NullishCoalescence - Record Class in technology.sola.script.parser
-
Expression for nullish coalescence operator that evaluates to the right side expression if the left side expression evaluates to null.
- Expr.Set - Record Class in technology.sola.script.parser
-
Expression that sets a property on a
SolaScriptMap. - Expr.Ternary - Record Class in technology.sola.script.parser
-
Expression for a ternary operation.
- Expr.Unary - Record Class in technology.sola.script.parser
-
Expression for unary operators that operate on one expression (such as "!" to invert a boolean).
- Expr.Variable - Record Class in technology.sola.script.parser
-
Variable expressions hold a name of a variable to evaluate the value of.
- Expr.Visitor<R> - Interface in technology.sola.script.parser
-
Defines operations for the various
Exprimplementations. - expression() - Method in record class technology.sola.script.parser.Expr.Grouping
-
Returns the value of the
expressionrecord component. - expression(Stmt.Expression) - Method in interface technology.sola.script.parser.Stmt.Visitor
-
Executes an
Stmt.Expressionstatement and returns the value. - Expression(Expr) - Constructor for record class technology.sola.script.parser.Stmt.Expression
-
Creates an instance of a
Expressionrecord class.
F
- FALSE - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Keyword - "false"
- falseExpr() - Method in record class technology.sola.script.parser.Expr.Ternary
-
Returns the value of the
falseExprrecord component. - FOR - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Keyword - "for"
- formatMessage(Object...) - Method in enum class technology.sola.script.error.ScriptErrorType
-
Formats the error message for displaying to the developer.
- FUN - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Keyword for function declaration - "fun"
- function(Stmt.Function) - Method in interface technology.sola.script.parser.Stmt.Visitor
-
Executes a
Stmt.Functionstatement and returns the value. - Function(Token, List<Token>, List<Stmt>) - Constructor for record class technology.sola.script.parser.Stmt.Function
-
Creates an instance of a
Functionrecord class.
G
- get(Expr.Get) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.Getexpression and returns the value. - get(Token) - Method in class technology.sola.script.runtime.SolaScriptMap
-
Gets a property from the map.
- Get(Expr, Token) - Constructor for record class technology.sola.script.parser.Expr.Get
-
Creates an instance of a
Getrecord class. - getDistance(Expr) - Method in class technology.sola.script.runtime.ScopeTable
-
Gets the distance needed to resolve the correct value for the desired variable.
- getOptional(Expr.GetOptional) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.GetOptionalexpression and returns the value. - GetOptional(Expr, Token) - Constructor for record class technology.sola.script.parser.Expr.GetOptional
-
Creates an instance of a
GetOptionalrecord class. - GREATER - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - ">"
- GREATER_EQUAL - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - ">="
- grouping(Expr.Grouping) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.Groupingexpression and returns the value. - Grouping(Expr) - Constructor for record class technology.sola.script.parser.Expr.Grouping
-
Creates an instance of a
Groupingrecord class.
H
- hasError() - Method in class technology.sola.script.error.ErrorContainer
- hashCode() - Method in record class technology.sola.script.error.ScriptError
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.Assign
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.Binary
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.Call
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.CallOptional
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.Get
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.GetOptional
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.Grouping
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.Literal
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.Logical
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.NullishCoalescence
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.Set
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.Ternary
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.Unary
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Expr.Variable
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.ParserResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Stmt.Block
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Stmt.Expression
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Stmt.Function
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Stmt.If
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Stmt.Return
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Stmt.Val
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Stmt.Var
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.parser.Stmt.While
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.tokenizer.Token
-
Returns a hash code value for this object.
- hashCode() - Method in record class technology.sola.script.tokenizer.TokenizeResult
-
Returns a hash code value for this object.
- hasRuntimeError() - Method in class technology.sola.script.error.ErrorContainer
I
- IDENTIFIER - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
An identifier for a function, variable or value - [a-zA-Z_][a-zA-Z0-9_]*
- If(Expr, Stmt, Stmt) - Constructor for record class technology.sola.script.parser.Stmt.If
-
Creates an instance of a
Ifrecord class. - IF - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Keyword - "if"
- ifVisit(Stmt.If) - Method in interface technology.sola.script.parser.Stmt.Visitor
-
Executes an
Stmt.Ifstatement and returns the value. - importModule(ScriptModule) - Method in class technology.sola.script.runtime.ScriptRuntime
-
Imports functionality provided by a
ScriptModuleinto the globals of this runtime. - initializer() - Method in record class technology.sola.script.parser.Stmt.Val
-
Returns the value of the
initializerrecord component. - initializer() - Method in record class technology.sola.script.parser.Stmt.Var
-
Returns the value of the
initializerrecord component. - interpret(List<Stmt>) - Method in class technology.sola.script.interpreter.Interpreter
-
Interprets a list of
Stmts utilizing the attachedScriptRuntime. - Interpreter - Class in technology.sola.script.interpreter
-
Interpreter handles interpreting a list of
Stmtfor a givenScriptRuntimestate. - Interpreter(ScriptRuntime) - Constructor for class technology.sola.script.interpreter.Interpreter
-
Creates an instance for desired
ScriptRuntime. - INVALID_ASSIGNMENT_TARGET - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when an assignment operation is detected, but the target is not valid.
- INVALID_BINARY_EXPRESSION - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a binary operator is detected without a left operand.
- INVALID_SELF_INITIALIZATION - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Semantic error when a variable is used to initialize itself.
- isDeclaredInScope(Token) - Method in class technology.sola.script.runtime.ScopeTable
-
Checks if a variable has been declared in the current scope or not.
- isDefinedInScope(Token) - Method in class technology.sola.script.runtime.ScopeTable
-
Checks if a variable has been defined in the current scope or not.
- isSelfReferenceVariableInitialization(Expr.Variable) - Method in class technology.sola.script.runtime.ScopeTable
-
Utility method to check if a
Expr.Variableexpression is being used to initialize itself. - isTruthy(Object) - Static method in class technology.sola.script.interpreter.ValueUtils
-
Checks to see if a value is considered "truthy" or not.
K
- keyword() - Method in record class technology.sola.script.parser.Stmt.Return
-
Returns the value of the
keywordrecord component.
L
- left() - Method in record class technology.sola.script.parser.Expr.Binary
-
Returns the value of the
leftrecord component. - left() - Method in record class technology.sola.script.parser.Expr.Logical
-
Returns the value of the
leftrecord component. - left() - Method in record class technology.sola.script.parser.Expr.NullishCoalescence
-
Returns the value of the
leftrecord component. - LEFT_BRACE - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single character token - "{"
- LEFT_PAREN - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single character token - "("
- LESS - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - "<"
- LESS_EQUAL - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - "<="
- lexeme() - Method in record class technology.sola.script.tokenizer.Token
-
Returns the value of the
lexemerecord component. - line() - Method in record class technology.sola.script.error.ScriptError
-
Returns the value of the
linerecord component. - line() - Method in record class technology.sola.script.tokenizer.Token
-
Returns the value of the
linerecord component. - literal() - Method in record class technology.sola.script.tokenizer.Token
-
Returns the value of the
literalrecord component. - literal(Expr.Literal) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.Literalexpression and returns the value. - Literal(Object) - Constructor for record class technology.sola.script.parser.Expr.Literal
-
Creates an instance of a
Literalrecord class. - logical(Expr.Logical) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.Logicalexpression and returns the value. - Logical(Expr, Token, Expr) - Constructor for record class technology.sola.script.parser.Expr.Logical
-
Creates an instance of a
Logicalrecord class. - lookUpVariable(Expr.Variable) - Method in class technology.sola.script.runtime.ScriptRuntime
-
Looks up a variable's value utilizing the variable resolutions in the
ScopeTablefor the runtime.
M
- main(String[]) - Static method in class technology.sola.script.SolaScriptMain
-
Main entry point for running sola script as an executable.
- MAX_ARGUMENTS - Static variable in class technology.sola.script.parser.ParserConstants
-
The maximum number of arguments allowed for a function.
- MINUS - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single character token - "-"
N
- name() - Method in record class technology.sola.script.parser.Expr.Assign
-
Returns the value of the
namerecord component. - name() - Method in record class technology.sola.script.parser.Expr.Get
-
Returns the value of the
namerecord component. - name() - Method in record class technology.sola.script.parser.Expr.GetOptional
-
Returns the value of the
namerecord component. - name() - Method in record class technology.sola.script.parser.Expr.Set
-
Returns the value of the
namerecord component. - name() - Method in record class technology.sola.script.parser.Expr.Variable
-
Returns the value of the
namerecord component. - name() - Method in record class technology.sola.script.parser.Stmt.Function
-
Returns the value of the
namerecord component. - name() - Method in record class technology.sola.script.parser.Stmt.Val
-
Returns the value of the
namerecord component. - name() - Method in record class technology.sola.script.parser.Stmt.Var
-
Returns the value of the
namerecord component. - NOT_CALLABLE - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Runtime error when a call is detected on something that is not a function.
- NULL - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Keyword - "null"
- nullishCoalescence(Expr.NullishCoalescence) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.NullishCoalescenceexpression and returns the value. - NullishCoalescence(Expr, Token, Expr) - Constructor for record class technology.sola.script.parser.Expr.NullishCoalescence
-
Creates an instance of a
NullishCoalescencerecord class. - NUMBER - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
A number value - [1-9][0-9]*(\.[0-9]+)?
O
- object() - Method in record class technology.sola.script.parser.Expr.Get
-
Returns the value of the
objectrecord component. - object() - Method in record class technology.sola.script.parser.Expr.GetOptional
-
Returns the value of the
objectrecord component. - object() - Method in record class technology.sola.script.parser.Expr.Set
-
Returns the value of the
objectrecord component. - ONLY_MAPS_HAVE_PROPERTIES - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Runtime error when a property accessor is found on something that is not a map.
- OPERAND_MUST_BE_NUMBER - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Runtime error when an operand was expected to be a number.
- OPERANDS_MUST_BE_NUMBERS - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Runtime error when both operands were expected to be a number.
- OPERANDS_MUST_BE_TWO_NUMBERS_OR_ONE_STRING - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Runtime error when both operands are not numbers and at least one of the operands is not a string.
- operator() - Method in record class technology.sola.script.parser.Expr.Binary
-
Returns the value of the
operatorrecord component. - operator() - Method in record class technology.sola.script.parser.Expr.Logical
-
Returns the value of the
operatorrecord component. - operator() - Method in record class technology.sola.script.parser.Expr.NullishCoalescence
-
Returns the value of the
operatorrecord component. - operator() - Method in record class technology.sola.script.parser.Expr.Unary
-
Returns the value of the
operatorrecord component.
P
- parameters() - Method in record class technology.sola.script.parser.Stmt.Function
-
Returns the value of the
parametersrecord component. - paren() - Method in record class technology.sola.script.parser.Expr.Call
-
Returns the value of the
parenrecord component. - paren() - Method in record class technology.sola.script.parser.Expr.CallOptional
-
Returns the value of the
parenrecord component. - parse() - Method in class technology.sola.script.parser.Parser
- PARSE - Enum constant in enum class technology.sola.script.error.ScriptErrorStage
-
Parse errors happen before code is executed.
- Parser - Class in technology.sola.script.parser
- Parser(List<Token>) - Constructor for class technology.sola.script.parser.Parser
-
Creates an instance for a desired list of
Tokens. - ParserConstants - Class in technology.sola.script.parser
-
ParserConstants holds constants used while parsing a sola script.
- ParserResult - Record Class in technology.sola.script.parser
-
ParserResult holds the parsed
Stmts and anyScriptErrors found while parsing. - ParserResult(List<Stmt>, List<ScriptError>) - Constructor for record class technology.sola.script.parser.ParserResult
-
Creates an instance of a
ParserResultrecord class. - ParserResultPrinter - Class in technology.sola.script.parser
-
ParserResultPrinter serializes a
ParserResultin a human-readable way. - ParserResultPrinter() - Constructor for class technology.sola.script.parser.ParserResultPrinter
- PLUS - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single character token - "+"
- print() - Method in class technology.sola.script.library.StandardLibraryScriptModule
-
print
- print(ParserResult) - Method in class technology.sola.script.parser.ParserResultPrinter
-
Converts a
ParserResultinto a human-readable string. - printErrors() - Method in class technology.sola.script.error.ErrorContainer
-
Prints all errors to
System.err.
Q
- QUESTION - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - "?"
- QUESTION_DOT - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - "?."
- QUESTION_QUESTION - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single or double character token - "??"
R
- readLine() - Method in class technology.sola.script.library.StandardLibraryScriptModule
-
readLine
- resolve(List<Stmt>) - Method in class technology.sola.script.resolver.Resolver
-
Processes variable scope resolutions for a list of
Stmts in the attachedScriptRuntime. - resolveLocal(Expr, Token) - Method in class technology.sola.script.runtime.ScopeTable
-
Resolves the nested depth of a local variable usage for an
Expr. - Resolver - Class in technology.sola.script.resolver
- Resolver(ScriptRuntime) - Constructor for class technology.sola.script.resolver.Resolver
-
Creates an instance for desired
ScriptRuntime. - restoreEnvironment(EnvironmentHandle) - Method in class technology.sola.script.runtime.ScriptRuntime
-
Restores an environment utilizing its
EnvironmentHandle. - Return(Token, Expr) - Constructor for record class technology.sola.script.parser.Stmt.Return
-
Creates an instance of a
Returnrecord class. - RETURN - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Keyword - "return"
- returnVisit(Stmt.Return) - Method in interface technology.sola.script.parser.Stmt.Visitor
-
Executes a
Stmt.Returnstatement and returns the value. - right() - Method in record class technology.sola.script.parser.Expr.Binary
-
Returns the value of the
rightrecord component. - right() - Method in record class technology.sola.script.parser.Expr.Logical
-
Returns the value of the
rightrecord component. - right() - Method in record class technology.sola.script.parser.Expr.NullishCoalescence
-
Returns the value of the
rightrecord component. - right() - Method in record class technology.sola.script.parser.Expr.Unary
-
Returns the value of the
rightrecord component. - RIGHT_BRACE - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single character token - "}"
- RIGHT_PAREN - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single character token - ")"
- RUNTIME - Enum constant in enum class technology.sola.script.error.ScriptErrorStage
-
Runtime errors happen while the script is executing.
S
- scopes() - Method in class technology.sola.script.runtime.ScriptRuntime
-
Gets the
ScopeTablefor the runtime so it can be updated with local variable resolutions. - ScopeTable - Class in technology.sola.script.runtime
-
ScopeTable holds variable resolutions at various depths of scope.
- ScopeTable() - Constructor for class technology.sola.script.runtime.ScopeTable
- ScriptError - Record Class in technology.sola.script.error
-
ScriptError holds information about what kind of error happened, where it happened, and a longer description for a user to resolve it.
- ScriptError(ScriptErrorType, int, int, Object...) - Constructor for record class technology.sola.script.error.ScriptError
-
Creates an instance of a
ScriptErrorrecord class. - ScriptError(ScriptErrorType, Token, Object...) - Constructor for record class technology.sola.script.error.ScriptError
-
ScriptError holds information about what kind of error happened, where it happened, and a longer description for a user to resolve it.
- ScriptErrorStage - Enum Class in technology.sola.script.error
-
ScriptErrorStage holds the various stages where errors can occur while parsing and executing a sola script.
- ScriptErrorType - Enum Class in technology.sola.script.error
-
ScriptErrorType contains various expected errors that may occur while parsing and executing a sola script.
- ScriptInterpretationException - Exception in technology.sola.script.error
-
ScriptErrorException is a runtime exception that is thrown while trying to interpret a sola script containing information about the
ScriptErrorTypecause and theTokenit was found at. - ScriptInterpretationException(Token, ScriptErrorType, Object...) - Constructor for exception technology.sola.script.error.ScriptInterpretationException
-
Creates an instance of this exception.
- ScriptModule - Interface in technology.sola.script.library
-
ScriptModule defines the api for a module to be imported into a
ScriptRuntime. - ScriptRuntime - Class in technology.sola.script.runtime
-
ScriptRuntime contains environment state information as well as a
ScopeTableto keep track of nested scope variable resolutions. - ScriptRuntime() - Constructor for class technology.sola.script.runtime.ScriptRuntime
- SEMANTIC - Enum constant in enum class technology.sola.script.error.ScriptErrorStage
-
Semantic errors happen after parsing, but before execution.
- SEMICOLON - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single character token - ";"
- set(String, Object) - Method in class technology.sola.script.runtime.SolaScriptMap
-
Sets a property on the map.
- set(Expr.Set) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.Setexpression and returns the value. - set(Token, Object) - Method in class technology.sola.script.runtime.SolaScriptMap
-
Sets a property on the map.
- Set(Expr, Token, Expr) - Constructor for record class technology.sola.script.parser.Expr.Set
-
Creates an instance of a
Setrecord class. - SLASH - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single character token - "/"
- SolaScript - Class in technology.sola.script
-
SolaScript is a runtime container for executing sola scripts.
- SolaScript() - Constructor for class technology.sola.script.SolaScript
-
Creates an instance of the SolaScript runtime with the
StandardLibraryScriptModuleimported. - SolaScript(List<ScriptModule>) - Constructor for class technology.sola.script.SolaScript
-
Creates an instance of the SolaScript runtime with the desired
ScriptModules imported. - SolaScriptCallable - Interface in technology.sola.script.runtime
-
SolaScriptCallable specifies the contract for something that is callable in a sola script.
- SolaScriptFunction - Class in technology.sola.script.runtime
-
SolaScriptFunction is a runtime definition of a function declaration that is callable (implements
SolaScriptCallableinterface). - SolaScriptFunction(Consumer<Stmt>, ScriptRuntime, Stmt.Function) - Constructor for class technology.sola.script.runtime.SolaScriptFunction
-
Creates an instance of the runtime function declaration.
- SolaScriptMain - Class in technology.sola.script
-
SolaScriptMain contains the entry point for running sola scripts from the command line.
- SolaScriptMain() - Constructor for class technology.sola.script.SolaScriptMain
- SolaScriptMap - Class in technology.sola.script.runtime
-
SolaScriptMap is the runtime representation of the sola-script map type.
- SolaScriptMap() - Constructor for class technology.sola.script.runtime.SolaScriptMap
- stage - Variable in enum class technology.sola.script.error.ScriptErrorType
-
The
ScriptErrorStagewhere the error occurs. - StandardLibraryScriptModule - Class in technology.sola.script.library
-
StandardLibraryScriptModule contains some standard functionality for making useful programs using sola-script.
- StandardLibraryScriptModule() - Constructor for class technology.sola.script.library.StandardLibraryScriptModule
- STAR - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Single character token - "*"
- statements() - Method in record class technology.sola.script.parser.ParserResult
-
Returns the value of the
statementsrecord component. - statements() - Method in record class technology.sola.script.parser.Stmt.Block
-
Returns the value of the
statementsrecord component. - Stmt - Interface in technology.sola.script.parser
-
Stmt represents a piece of code that performs an action or controls the flow of the program.
- Stmt.Block - Record Class in technology.sola.script.parser
-
Block contains a list of
Stmts that are executed in their own scope. - Stmt.Expression - Record Class in technology.sola.script.parser
-
Expression statement evaluates an expression.
- Stmt.Function - Record Class in technology.sola.script.parser
-
Function statement declares a function in the current scope with desired parameters and body.
- Stmt.If - Record Class in technology.sola.script.parser
-
If statement is a conditional branching statement.
- Stmt.Return - Record Class in technology.sola.script.parser
-
Return statement exits a function while optionally returning a value for the caller to use.
- Stmt.Return.Exception - Exception in technology.sola.script.parser
-
Return is an exception utilized by the
Interpreterto throw when aStmt.Returnis being interpreted so that the wrappingSolaScriptFunctioncan catch it and return the value as the result of theExpr.Call. - Stmt.Val - Record Class in technology.sola.script.parser
-
Val statement declares a constant in the current scope with an initializer.
- Stmt.Var - Record Class in technology.sola.script.parser
-
Var statement declares a variable in the current scope with an optional initializer.
- Stmt.Visitor<R> - Interface in technology.sola.script.parser
-
Defines operations for the various
Stmtimplementations. - Stmt.While - Record Class in technology.sola.script.parser
-
While statement is a conditional looping statement.
- STRING - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
A string value - \".*\"
- stringify(Object) - Static method in class technology.sola.script.interpreter.ValueUtils
-
Method to make a sola-script value into a string.
T
- technology.sola.script - module technology.sola.script
-
Defines the sola-script API.
- technology.sola.script - package technology.sola.script
-
This package provides the core classes for sola-script.
- technology.sola.script.error - package technology.sola.script.error
-
This package provides error support for sola-script.
- technology.sola.script.interpreter - package technology.sola.script.interpreter
- technology.sola.script.library - package technology.sola.script.library
- technology.sola.script.parser - package technology.sola.script.parser
- technology.sola.script.resolver - package technology.sola.script.resolver
- technology.sola.script.runtime - package technology.sola.script.runtime
- technology.sola.script.tokenizer - package technology.sola.script.tokenizer
-
This package provides tokenization functionality for sola-script.
- ternary(Expr.Ternary) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.Ternaryexpression and returns the value. - Ternary(Expr, Expr, Expr) - Constructor for record class technology.sola.script.parser.Expr.Ternary
-
Creates an instance of a
Ternaryrecord class. - thenBranch() - Method in record class technology.sola.script.parser.Stmt.If
-
Returns the value of the
thenBranchrecord component. - token - Variable in exception technology.sola.script.error.ScriptInterpretationException
-
The
Tokenwhere the error occurred. - Token - Record Class in technology.sola.script.tokenizer
-
Token holds information about a recognized token that sola script understands.
- Token(TokenType, String, Object, int, int) - Constructor for record class technology.sola.script.tokenizer.Token
-
Creates an instance of a
Tokenrecord class. - tokenize() - Method in class technology.sola.script.tokenizer.Tokenizer
-
Tokenizes the source string and includes any errors found.
- Tokenizer - Class in technology.sola.script.tokenizer
-
Tokenizer provides functionality for tokenizing a source string into
Tokens to be parsed and interpreted. - Tokenizer(String) - Constructor for class technology.sola.script.tokenizer.Tokenizer
-
Creates a Tokenizer instance for desired source string.
- TokenizeResult - Record Class in technology.sola.script.tokenizer
- TokenizeResult(List<Token>, List<ScriptError>) - Constructor for record class technology.sola.script.tokenizer.TokenizeResult
-
Creates an instance of a
TokenizeResultrecord class. - tokens() - Method in record class technology.sola.script.tokenizer.TokenizeResult
-
Returns the value of the
tokensrecord component. - TokenType - Enum Class in technology.sola.script.tokenizer
-
TokenType contains all recognized token types for sola script.
- TOO_MANY_ARGUMENTS - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Semantic error when a function has been declared with too many arguments.
- toString() - Method in record class technology.sola.script.error.ScriptError
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.Assign
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.Binary
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.Call
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.CallOptional
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.Get
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.GetOptional
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.Grouping
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.Literal
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.Logical
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.NullishCoalescence
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.Set
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.Ternary
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.Unary
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Expr.Variable
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.ParserResult
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Stmt.Block
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Stmt.Expression
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Stmt.Function
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Stmt.If
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Stmt.Return
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Stmt.Val
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Stmt.Var
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.parser.Stmt.While
-
Returns a string representation of this record class.
- toString() - Method in class technology.sola.script.runtime.SolaScriptMap
- toString() - Method in record class technology.sola.script.tokenizer.Token
-
Returns a string representation of this record class.
- toString() - Method in record class technology.sola.script.tokenizer.TokenizeResult
-
Returns a string representation of this record class.
- TRUE - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Keyword - "true"
- trueExpr() - Method in record class technology.sola.script.parser.Expr.Ternary
-
Returns the value of the
trueExprrecord component. - type() - Method in record class technology.sola.script.error.ScriptError
-
Returns the value of the
typerecord component. - type() - Method in record class technology.sola.script.tokenizer.Token
-
Returns the value of the
typerecord component.
U
- unary(Expr.Unary) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.Unaryexpression and returns the value. - Unary(Token, Expr) - Constructor for record class technology.sola.script.parser.Expr.Unary
-
Creates an instance of a
Unaryrecord class. - UNDEFINED_VARIABLE - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Runtime error when a variable is used, but not defined in scope.
- UNEXPECTED_CHARACTER - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error that happens during tokenization when an unexpected character is found in a script.
- UNTERMINATED_STRING - Enum constant in enum class technology.sola.script.error.ScriptErrorType
-
Parsing error when a
TokenType.STRINGhas been detected, but has not been terminated.
V
- val(Stmt.Val) - Method in interface technology.sola.script.parser.Stmt.Visitor
-
Executes a
Stmt.Valstatement and returns the value. - Val(Token, Expr) - Constructor for record class technology.sola.script.parser.Stmt.Val
-
Creates an instance of a
Valrecord class. - VAL - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Keyword for value (constant) declaration - "val"
- value - Variable in exception technology.sola.script.parser.Stmt.Return.Exception
-
The value returned by the
Stmt.Return. - value() - Method in record class technology.sola.script.parser.Expr.Assign
-
Returns the value of the
valuerecord component. - value() - Method in record class technology.sola.script.parser.Expr.Literal
-
Returns the value of the
valuerecord component. - value() - Method in record class technology.sola.script.parser.Expr.Set
-
Returns the value of the
valuerecord component. - value() - Method in record class technology.sola.script.parser.Stmt.Return
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class technology.sola.script.error.ScriptErrorStage
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class technology.sola.script.error.ScriptErrorType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class technology.sola.script.tokenizer.TokenType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class technology.sola.script.error.ScriptErrorStage
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class technology.sola.script.error.ScriptErrorType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class technology.sola.script.tokenizer.TokenType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- ValueUtils - Class in technology.sola.script.interpreter
-
ValueUtils contains various utility methods for sola-script values.
- var(Stmt.Var) - Method in interface technology.sola.script.parser.Stmt.Visitor
-
Executes a
Stmt.Varstatement and returns the value. - Var(Token, Expr) - Constructor for record class technology.sola.script.parser.Stmt.Var
-
Creates an instance of a
Varrecord class. - VAR - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Keyword for variable declaration - "var"
- variable(Expr.Variable) - Method in interface technology.sola.script.parser.Expr.Visitor
-
Evaluates a
Expr.Variableexpression and returns the value. - Variable(Token) - Constructor for record class technology.sola.script.parser.Expr.Variable
-
Creates an instance of a
Variablerecord class. - variables() - Method in interface technology.sola.script.library.ScriptModule
-
Gets the variable definitions within this module.
- variables() - Method in class technology.sola.script.library.StandardLibraryScriptModule
W
- While(Expr, Stmt) - Constructor for record class technology.sola.script.parser.Stmt.While
-
Creates an instance of a
Whilerecord class. - WHILE - Enum constant in enum class technology.sola.script.tokenizer.TokenType
-
Keyword - "while"
- whileVisit(Stmt.While) - Method in interface technology.sola.script.parser.Stmt.Visitor
-
Executes a
Stmt.Whilestatement and returns the value.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form