Class KotlinParser

java.lang.Object
org.openrewrite.kotlin.KotlinParser
All Implemented Interfaces:
org.openrewrite.Parser

public class KotlinParser extends Object implements org.openrewrite.Parser
  • Field Details

  • Constructor Details

    • KotlinParser

      public KotlinParser()
  • Method Details

    • parse

      public Stream<org.openrewrite.SourceFile> parse(@Language("kotlin") String... sources)
      Specified by:
      parse in interface org.openrewrite.Parser
    • parseInputs

      public Stream<org.openrewrite.SourceFile> parseInputs(Iterable<org.openrewrite.Parser.Input> sources, @Nullable @Nullable Path relativeTo, org.openrewrite.ExecutionContext ctx)
      Specified by:
      parseInputs in interface org.openrewrite.Parser
    • accept

      public boolean accept(Path path)
      Specified by:
      accept in interface org.openrewrite.Parser
    • reset

      public KotlinParser reset()
      Specified by:
      reset in interface org.openrewrite.Parser
    • setSourceSet

      @Deprecated public void setSourceSet(String sourceSet)
      Deprecated.
    • getSourceSet

      @Deprecated public org.openrewrite.java.marker.JavaSourceSet getSourceSet(org.openrewrite.ExecutionContext ctx)
      Deprecated.
    • sourcePathFromSourceText

      public Path sourcePathFromSourceText(Path prefix, String sourceCode)
      Specified by:
      sourcePathFromSourceText in interface org.openrewrite.Parser
    • builder

      public static KotlinParser.Builder builder()