finesse.script.adapter
¶
Interface between script and Finesse.
Adapters provide a programmatic way to retrieve useful information about KatScript directives using their corresponding Python objects, and vice versa. This is primarily used for the compiler and generator, but is also used to improve syntax suggestions and error messages.
The adapter class hierarchy is intentionally very generic. By default, an ordinary KatScript directive corresponding to an ordinary Finesse object is quite simple to specify and should “just work”. When special behaviour is required, e.g. in cases where the KatScript directive has different arguments than the corresponding Python object (e.g. tem) or where there is no corresponding Python object (e.g. modes), the methods and members of the adapter can be overridden.
Classes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Adapter defining how a script instruction maps to/from a Python type. |
|
|
|
|
|
|
|
Root class for all dumper, setter, factory and documenter objects. |
|
|
|
|
|
Mixin providing ability to retrieve signature arguments from a Python function. |
|
Mixin providing the ability to get and set item parameters by inspecting its constructor signature arguments matching equivalently named object attributes. |
|
Dataclasses
|
A set of analysis parameters and metadata. |
|
A generic instruction argument. |
|
A Finesse object argument name, its current value, default value, kind, annotation, and whether it should be dumped by value or reference. |
|
A concrete argument originating from a call to a setter. |
|
A set of command parameters and metadata. |
|
A set of element parameters and metadata. |
Enums
|
Signature argument types. |