TypeRef
A Ref wrapping a JVM/Kotlin type (rather than an instance of it, as ObjectRef does), so that Prolog code can construct new instances of it (create) and invoke its static members / companion object members via the inherited Ref.invoke and Ref.assign.
A TypeRef renders as the atom <type:<fully-qualified-type-name>>. It backs the new_object/2,3 predicates (it.unibo.tuprolog.solve.libs.oop.primitives.NewObject3, it.unibo.tuprolog.solve.libs.oop.rules.NewObject2) and is what it.unibo.tuprolog.solve.libs.oop.rules.Alias.forType and the default type aliases registered by OOPLib (string, int, ...) resolve to.
See also
Properties
Functions
Like assign, but converting value via TermToObjectConverter.default.
Assigns value (converted via objectConverter) to the mutable property named propertyName on this reference, selecting the overload whose type best matches value.
Like create, but converting arguments via TermToObjectConverter.default.
Invokes the (possibly overloaded) constructor of type whose formal parameters best match arguments (converted via objectConverter), yielding a Result wrapping the freshly created instance.
Like invoke, but converting arguments via TermToObjectConverter.default.
Invokes the (possibly overloaded) member named methodName on this reference, converting arguments to actual JVM/Kotlin values via objectConverter and picking the overload whose formal parameters best match them.