Package de.peekandpoke.ultra.meta

Types

CompileTest
Link copied to clipboard
data class CompileTest
The compile test runner.
GenericUsages
Link copied to clipboard
class GenericUsages(model: Model, types: List<TypeElement>) : ProcessorUtils
KotlinPrinter
Link copied to clipboard
class KotlinPrinter(packageName: String, fileAnnotations: List<String>, defaultImports: List<String>, indentSize: Int)
KotlinProcessor
Link copied to clipboard
abstract class KotlinProcessor(logPrefix: String) : AbstractProcessor, ProcessorUtils
ProcessorUtils
Link copied to clipboard
interface ProcessorUtils

Functions

compileTest
Link copied to clipboard
fun compileTest(builder: CompileTest.Builder.() -> Unit): KotlinCompilation.Result
Compile testing DSL entry point
expectFileCount
Link copied to clipboard
fun CompileTest.Builder.expectFileCount(count: Int): CompileTest.Builder
Adds an expectation that checks for the exact number of files to be created
expectFileToMatch
Link copied to clipboard
fun CompileTest.Builder.expectFileToMatch(file: String, expectedContent: String): CompileTest.Builder
Adds an expectation that matches the contents of a file with the expectedContent
expectFileToNotExist
Link copied to clipboard
Adds an expectation that checks that the given file was NOT created

Properties

KAPT_KOTLIN_GENERATED_OPTION
Link copied to clipboard
const val KAPT_KOTLIN_GENERATED_OPTION: String
Name of the processor option containing the path to the Kotlin generated src dir.
KOTLIN_METADATA_CLASSNAME
Link copied to clipboard
const val KOTLIN_METADATA_CLASSNAME: String
Fully qualified name class name of kotlin.Metadata (which is internal).
toKotlin
Link copied to clipboard
val ClassName.toKotlin: ClassName