Class Java17Parser

java.lang.Object
org.openrewrite.java.Java17Parser
All Implemented Interfaces:
org.openrewrite.java.JavaParser, org.openrewrite.Parser<org.openrewrite.java.tree.J.CompilationUnit>

public class Java17Parser extends Object implements org.openrewrite.java.JavaParser
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from interface org.openrewrite.Parser

    org.openrewrite.Parser.Input
  • Field Summary

    Fields inherited from interface org.openrewrite.java.JavaParser

    runtimeClasspath, SKIP_SOURCE_SET_TYPE_GENERATION
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.openrewrite.java.marker.JavaSourceSet
    getSourceSet(org.openrewrite.ExecutionContext ctx)
     
    List<org.openrewrite.java.tree.J.CompilationUnit>
    parseInputs(Iterable<org.openrewrite.Parser.Input> sourceFiles, @Nullable Path relativeTo, org.openrewrite.ExecutionContext ctx)
     
    org.openrewrite.java.JavaParser
     
    void
     
    void
    setSourceSet(String sourceSet)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.openrewrite.java.JavaParser

    accept, parse, parse, sourcePathFromSourceText

    Methods inherited from interface org.openrewrite.Parser

    accept, acceptedInputs, getCharset, parse
  • Method Details

    • parseInputs

      public List<org.openrewrite.java.tree.J.CompilationUnit> parseInputs(Iterable<org.openrewrite.Parser.Input> sourceFiles, @Nullable @Nullable Path relativeTo, org.openrewrite.ExecutionContext ctx)
      Specified by:
      parseInputs in interface org.openrewrite.Parser<org.openrewrite.java.tree.J.CompilationUnit>
    • reset

      public org.openrewrite.java.JavaParser reset()
      Specified by:
      reset in interface org.openrewrite.java.JavaParser
      Specified by:
      reset in interface org.openrewrite.Parser<org.openrewrite.java.tree.J.CompilationUnit>
    • setClasspath

      public void setClasspath(Collection<Path> classpath)
      Specified by:
      setClasspath in interface org.openrewrite.java.JavaParser
    • setSourceSet

      public void setSourceSet(String sourceSet)
      Specified by:
      setSourceSet in interface org.openrewrite.java.JavaParser
    • getSourceSet

      public org.openrewrite.java.marker.JavaSourceSet getSourceSet(org.openrewrite.ExecutionContext ctx)
      Specified by:
      getSourceSet in interface org.openrewrite.java.JavaParser
    • builder

      public static Java17Parser.Builder builder()