Package org.openrewrite.polyglot
Class OmniParser.Builder
java.lang.Object
org.openrewrite.Parser.Builder
org.openrewrite.polyglot.OmniParser.Builder
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- OmniParser
public static class OmniParser.Builder
extends org.openrewrite.Parser.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()exclusionMatchers(Path basePath, Iterable<String> exclusions) exclusionMatchers(Collection<PathMatcher> exclusions) exclusions(Collection<Path> exclusions) parallel(boolean parallel) Resource parsers are safe to execute in parallel.sizeThresholdMb(int sizeThresholdMb) Methods inherited from class org.openrewrite.Parser.Builder
clone, getSourceFileType
-
Constructor Details
-
Builder
-
-
Method Details
-
exclusions
-
exclusionMatchers
-
exclusionMatchers
-
sizeThresholdMb
-
onParse
-
parallel
Resource parsers are safe to execute in parallel. This is not true of all parsers, for example the MavenParser.- Parameters:
parallel- whether the parser stream should be parallelized.- Returns:
- this builder.
-
build
- Specified by:
buildin classorg.openrewrite.Parser.Builder
-
getDslName
- Specified by:
getDslNamein classorg.openrewrite.Parser.Builder
-