Index
All Classes and Interfaces|All Packages|Serialized Form
B
- BadSyntax - Exception Class in ch.turic
-
Runtime exception for reporting syntax errors in the Turi language with detailed positional information.
- BadSyntax(Pos, String, Object...) - Constructor for exception class ch.turic.BadSyntax
-
Constructs a new BadSyntax exception with detailed error information.
- BuiltIns - Class in ch.turic
-
The BuiltIns class manages registration of built-in constants, functions, macros and classes that are available globally in the Turi language runtime.
- BuiltIns() - Constructor for class ch.turic.BuiltIns
C
- call(Context, Object[]) - Method in interface ch.turic.LngCallable
- ch.turic - module ch.turic
- ch.turic - package ch.turic
- Command - Interface in ch.turic
-
A command that the interpreter can execute
- commands() - Method in class ch.turic.Program
- compile() - Method in class ch.turic.Interpreter
-
Compiles the source code into an executable
Programobject. - compileAndExecute() - Method in class ch.turic.Interpreter
-
Executes the source code, compiling it first if necessary.
- completions() - Method in class ch.turic.Repl
- Context - Interface in ch.turic
-
Represents an execution context for the Turi language.
- ctx - Variable in class ch.turic.Repl
E
- embedded() - Method in exception class ch.turic.ExecutionException
-
Returns the embedded LngException if one exists.
- execute(Command) - Method in class ch.turic.Interpreter
-
Executes the provided command within the current execution context.
- execute(Context) - Method in interface ch.turic.Command
-
Execute the command.
- execute(String) - Method in class ch.turic.Repl
-
Executes the provided source code and returns the result of the execution.
- ExecutionException - Exception Class in ch.turic
-
Runtime exception class for execution-related errors in the Turi language.
- ExecutionException(Exception, String) - Constructor for exception class ch.turic.ExecutionException
-
Creates an exception with a cause and message.
- ExecutionException(String, Object...) - Constructor for exception class ch.turic.ExecutionException
-
Creates an exception with a formatted message.
- ExecutionException(Throwable) - Constructor for exception class ch.turic.ExecutionException
-
Creates an exception from another throwable.
- ExecutionException(Throwable, LngException) - Constructor for exception class ch.turic.ExecutionException
-
Creates an exception from a throwable with an embedded LngException.
- ExecutionException(Throwable, String, Object...) - Constructor for exception class ch.turic.ExecutionException
-
Creates an exception with a cause and formatted message.
F
- factory(Unmarshaller.Args) - Static method in class ch.turic.Program
- forClass() - Method in interface ch.turic.TuriClass
- fromFile(Path) - Static method in interface ch.turic.Input
- fromString(String) - Static method in interface ch.turic.Input
- fromString(String, String) - Static method in interface ch.turic.Input
G
- getImportContext() - Method in class ch.turic.Interpreter
- getInstances() - Static method in interface ch.turic.TuriClass
-
Retrieves a list of instances of classes that implement the
TuriClassinterface. - getInstances() - Static method in interface ch.turic.TuriFunction
-
Returns all instances of TuriFunction that are currently loaded in the system.
- getInstances() - Static method in interface ch.turic.TuriMacro
- getInstances(Class<T>) - Static method in interface ch.turic.ServiceLoaded
-
Load the classes that implement the interface
serviceand are provided by the modules or are available. - getInstances(Class<T>, ClassLoader) - Static method in interface ch.turic.ServiceLoaded
-
Retrieves a list of instances that implement the specified service interface using the provided class loader.
- getMethod(Object, String) - Method in interface ch.turic.TuriClass
I
- Input - Interface in ch.turic
- Interpreter - Class in ch.turic
-
Interprets and executes source code written in the programming language.
- Interpreter(Input) - Constructor for class ch.turic.Interpreter
-
Constructs an Interpreter instance with the specified input source.
- Interpreter(Program) - Constructor for class ch.turic.Interpreter
-
Constructs an Interpreter instance with the specified command to be executed.
- Interpreter(String) - Constructor for class ch.turic.Interpreter
- Interpreter(Path) - Constructor for class ch.turic.Interpreter
-
Constructs an
Interpreterinstance based on the given file.
L
- lexes - Variable in class ch.turic.Repl
- LngCallable - Interface in ch.turic
- LngCallable.LngCallableClosure - Interface in ch.turic
- LngCallable.LngCallableMacro - Interface in ch.turic
- loadResources(String, ClassLoader) - Static method in interface ch.turic.ServiceLoaded
-
Get the url list of the resources for the given name.
- loadViaMetaInf(Class<T>, List<T>, ClassLoader) - Static method in interface ch.turic.ServiceLoaded
-
Load the classes using the names listed in the
META-INF/services/class name resources found by the classloader.
N
- name() - Method in interface ch.turic.TuriFunction
-
Returns the identifier name of this function used for registration in the global heap space.
- name() - Method in interface ch.turic.TuriMacro
P
- Program - Class in ch.turic
- Program(Command[]) - Constructor for class ch.turic.Program
R
- register(Context) - Static method in class ch.turic.BuiltIns
-
Registers all built-in elements (constants, functions, macros and classes) into the given context.
- Repl - Class in ch.turic
-
A REPL (Read-Eval-Print Loop) interpreter that executes code incrementally.
- Repl() - Constructor for class ch.turic.Repl
S
- serialize() - Method in class ch.turic.Interpreter
- ServiceLoaded - Interface in ch.turic
-
This helper interface can load classes that implement a specific interface using the service loader.
T
- TuriClass - Interface in ch.turic
-
Classes implementing this interface and "providing" these classes from the module can implement methods for Java classes.
- TuriFunction - Interface in ch.turic
-
Represents a function in the Turi language system that can be loaded as a service.
- TuriMacro - Interface in ch.turic
W
- when(boolean, String, Object...) - Static method in exception class ch.turic.ExecutionException
-
Throws an ExecutionException with a formatted message when the condition is true.
- when(boolean, Supplier<String>) - Static method in exception class ch.turic.ExecutionException
-
Throws an ExecutionException with a message from a supplier when the condition is true.
- when(LexList, boolean, String, Object...) - Static method in exception class ch.turic.BadSyntax
-
Throws a BadSyntax exception when the given condition is true using lexer position information.
- when(Pos, boolean, String, Object...) - Static method in exception class ch.turic.BadSyntax
-
Throws a BadSyntax exception when the given condition is true using explicit position information.
- when(Pos, boolean, Supplier<String>) - Static method in exception class ch.turic.BadSyntax
-
Throws a BadSyntax exception when the given condition is true using a message supplier.
_
- _execute(Context) - Method in class ch.turic.Program
All Classes and Interfaces|All Packages|Serialized Form