BaseReferenceExporter

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
protected fun exportAnnotation(annotation: KClass<out Annotation>)

Exports annotation as if it were annotated with ExportAnnotation. annotation must be a class literal.

Link copied to clipboard
protected fun exportClass(clazz: KClass<*>, includeTypeParameters: Boolean = false)

Export a reference to the passed class. clazz must be a class literal.

Link copied to clipboard
protected fun exportEnumEntries(enumClass: KClass<out Enum<*>>)

Exports all entries of enumClass, and enumClass itself. enumClass must be a class literal.

Link copied to clipboard
protected fun exportReference(reference: KFunction<*>, includeParameters: Boolean = false, includeTypeParameters: Boolean = false)

Export a reference to the passed function. reference must be a literal :: expression.

protected fun exportReference(reference: KProperty<*>, includeParameters: Boolean = false, includeTypeParameters: Boolean = false)

Export a reference to the passed property. reference must be a literal :: expression.

Link copied to clipboard
protected fun exportReferenced(value: Any?, includeParameters: Boolean = false, includeTypeParameters: Boolean = false)

Exports the symbol value refers to. value must be a function call (including constructors) or property access.

Link copied to clipboard
protected fun <T> placeholder(): T

A non-exported placeholder. Useful to resolve method overloads for use with exportReference.