Package-level declarations

Types

Link copied to clipboard
annotation class Injected

When a library function parameter is annotated with @Injected, its value is not supplied by a function call but rather automatically injected by com.quarkdown.core.function.call.binding.InjectedArgumentsBinder.

Link copied to clipboard
annotation class Name(val name: String)

If a library member is annotated with this, a custom name is set instead of its original name. For example:

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class NoAutoArgumentUnwrapping

When invoking a function via KFunctionAdapter, Value arguments are automatically unwrapped to their raw value, unless this annotation is present on the Value subclass.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class NotForDocumentType(val types: DocumentType)

When a library function is annotated with this annotation, it can only be called if the document adopts none of the given document types. This is the opposite of OnlyForDocumentType.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class OnlyForDocumentType(val types: DocumentType)

When a library function is annotated with this annotation, it can only be called if the document adopts one of the given document types.