Package org.openrewrite.kotlin
Class Assertions
java.lang.Object
org.openrewrite.kotlin.Assertions
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.openrewrite.java.search.FindMissingTypes.MissingTypeResult>findMissingTypes(org.openrewrite.java.tree.J j) static org.openrewrite.internal.ThrowingConsumer<K.CompilationUnit>static org.openrewrite.test.SourceSpecsstatic org.openrewrite.test.SourceSpecsstatic org.openrewrite.test.SourceSpecskotlin(@Nullable String before, String after, Consumer<org.openrewrite.test.SourceSpec<K.CompilationUnit>> spec) static org.openrewrite.test.SourceSpecskotlin(@Nullable String before, Consumer<org.openrewrite.test.SourceSpec<K.CompilationUnit>> spec) static org.openrewrite.test.SourceSpecskotlinScript(@Nullable String before) static org.openrewrite.test.SourceSpecskotlinScript(@Nullable String before, Consumer<org.openrewrite.test.SourceSpec<K.CompilationUnit>> spec) static org.openrewrite.test.UncheckedConsumer<org.openrewrite.test.SourceSpec<?>>static org.openrewrite.internal.ThrowingConsumer<K.CompilationUnit>spaceConscious(org.openrewrite.test.SourceSpec<K.CompilationUnit> spec) static org.openrewrite.test.SourceSpecssrcMainKotlin(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... kotlinSources) static org.openrewrite.test.SourceSpecssrcMainKotlin(org.openrewrite.test.SourceSpecs... kotlinSources) static org.openrewrite.test.SourceSpecssrcTestKotlin(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... kotlinSources) static org.openrewrite.test.SourceSpecssrcTestKotlin(org.openrewrite.test.SourceSpecs... kotlinSources) static org.openrewrite.SourceFilevalidateTypes(org.openrewrite.SourceFile source, org.openrewrite.test.TypeValidation typeValidation)
-
Method Details
-
validateTypes
public static org.openrewrite.SourceFile validateTypes(org.openrewrite.SourceFile source, org.openrewrite.test.TypeValidation typeValidation) -
kotlin
-
kotlinScript
public static org.openrewrite.test.SourceSpecs kotlinScript(@Language("kts") @Nullable String before) -
kotlin
public static org.openrewrite.test.SourceSpecs kotlin(@Language("kotlin") @Nullable String before, Consumer<org.openrewrite.test.SourceSpec<K.CompilationUnit>> spec) -
kotlinScript
public static org.openrewrite.test.SourceSpecs kotlinScript(@Language("kts") @Nullable String before, Consumer<org.openrewrite.test.SourceSpec<K.CompilationUnit>> spec) -
kotlin
-
kotlin
public static org.openrewrite.test.SourceSpecs kotlin(@Language("kotlin") @Nullable String before, @Language("kotlin") String after, Consumer<org.openrewrite.test.SourceSpec<K.CompilationUnit>> spec) -
srcMainKotlin
public static org.openrewrite.test.SourceSpecs srcMainKotlin(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... kotlinSources) -
srcMainKotlin
public static org.openrewrite.test.SourceSpecs srcMainKotlin(org.openrewrite.test.SourceSpecs... kotlinSources) -
srcTestKotlin
public static org.openrewrite.test.SourceSpecs srcTestKotlin(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... kotlinSources) -
srcTestKotlin
public static org.openrewrite.test.SourceSpecs srcTestKotlin(org.openrewrite.test.SourceSpecs... kotlinSources) -
isFullyParsed
-
spaceConscious
public static org.openrewrite.test.UncheckedConsumer<org.openrewrite.test.SourceSpec<?>> spaceConscious() -
spaceConscious
public static org.openrewrite.internal.ThrowingConsumer<K.CompilationUnit> spaceConscious(org.openrewrite.test.SourceSpec<K.CompilationUnit> spec) -
findMissingTypes
public static List<org.openrewrite.java.search.FindMissingTypes.MissingTypeResult> findMissingTypes(org.openrewrite.java.tree.J j)
-