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 LikelyBody

When a library function parameter is annotated with @LikelyBody, it is marked as a body parameter that usually expects a body argument (wiki). This does not have any runtime effect, but is rather used for documentation purposes (see Quarkdoc).

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

When a library function is annotated with @LikelyChained, it is marked as a parameter that usually expects to be chained (wiki). This does not have any runtime effect, but is rather used for documentation purposes (see Quarkdoc).

Link copied to clipboard
annotation class LikelyNamed

When a library function parameter is annotated with @LikelyNamed, it is marked as a parameter that usually expects a named argument (wiki). This does not have any runtime effect, but is rather used for documentation purposes (see Quarkdoc).

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.