The following algorithm is applied when traversing sources:
pattern is a valid classpath resource, load the single
Source from therepattern is a valid file on the file system, load the
single Source from therepattern
(interpreted as an ant-style file pattern), and load all of the
Source items given sort(). An example pattern is
src/main/resources/**/*.sqlThis is INTERNAL API. Please do not use directly as API may change incompatibly.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | FilePattern.Sort
The sort algorithm to be applied to directory contents. |
| Modifier and Type | Field and Description |
|---|---|
| private final File | |
| private final Comparator | |
| private final String | |
| private static final JooqLogger | |
| private final String | |
| private final Pattern | |
| private final Pattern | |
| private final FilePattern. |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final File | |
| public final FilePattern | |
| public final List | |
| public final String | |
| public final FilePattern | |
| private static final Comparator | |
| public final void | |
| private final void | |
| private final void | |
| public final boolean | |
| public final String | |
| public final FilePattern | |
| private String | |
| public final FilePattern. | |
| public final FilePattern | |
| public String |
| basedir | back to summary |
|---|---|
| private final File basedir | |
| comparator | back to summary |
|---|---|
| private final Comparator<File> comparator | |
| encoding | back to summary |
|---|---|
| private final String encoding | |
| log | back to summary |
|---|---|
| private static final JooqLogger log | |
| pattern | back to summary |
|---|---|
| private final String pattern | |
| regexForLoad | back to summary |
|---|---|
| private final Pattern regexForLoad | |
| regexForMatches | back to summary |
|---|---|
| private final Pattern regexForMatches | |
| sort | back to summary |
|---|---|
| private final FilePattern. | |
| FilePattern | back to summary |
|---|---|
| public FilePattern() | |
| FilePattern | back to summary |
|---|---|
| private FilePattern(FilePattern. | |
| basedir | back to summary |
|---|---|
| public final File basedir() | |
| basedir | back to summary |
|---|---|
| public final FilePattern basedir(File newBasedir) | |
| collect | back to summary |
|---|---|
| public final List Retrieve a set of
| |
| encoding | back to summary |
|---|---|
| public final String encoding() | |
| encoding | back to summary |
|---|---|
| public final FilePattern encoding(String newEncoding) | |
| fileComparator | back to summary |
|---|---|
| private static final Comparator | |
| load | back to summary |
|---|---|
| public final void load(Consumer<Source> loader) Load a set of
| |
| load | back to summary |
|---|---|
| private final void load(File file, Comparator<File> fileComparator, Pattern regex, Consumer<Source> loader) throws IOException | |
| load0 | back to summary |
|---|---|
| private final void load0(File file, Consumer<Source> loader) | |
| matches | back to summary |
|---|---|
| public final boolean matches(String path) Whether a given path matches the pattern. | |
| pattern | back to summary |
|---|---|
| public final String pattern() | |
| pattern | back to summary |
|---|---|
| public final FilePattern pattern(String newPattern) | |
| regex | back to summary |
|---|---|
| private String regex() | |
| sort | back to summary |
|---|---|
| public final FilePattern. | |
| sort | back to summary |
|---|---|
| public final FilePattern sort(FilePattern. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FilePattern. | ALPHANUMERIC
Standard alphanumeric sorting. |
| public static final FilePattern. | FLYWAY
Flyway compatible sorting. |
| public static final FilePattern. | NONE
No explicit sorting (may be non deterministic, depending on the file system). |
| public static final FilePattern. | SEMANTIC
Semantic, version aware sorting (the default). |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static final FilePattern. | |
| public static FilePattern. | |
| public static FilePattern. |
| ALPHANUMERIC | back to summary |
|---|---|
| public static final FilePattern. Standard alphanumeric sorting. For example: version-1 version-10 version-2 | |
| FLYWAY | back to summary |
|---|---|
| public static final FilePattern. Flyway compatible sorting. | |
| NONE | back to summary |
|---|---|
| public static final FilePattern. No explicit sorting (may be non deterministic, depending on the file system). | |
| SEMANTIC | back to summary |
|---|---|
| public static final FilePattern. Semantic, version aware sorting (the default). For example: version-1 version-2 version-10 | |
| Sort | back to summary |
|---|---|
| private Sort() | |
| of | back to summary |
|---|---|
| public static final FilePattern. | |
| valueOf | back to summary |
|---|---|
| public static FilePattern. | |
| values | back to summary |
|---|---|
| public static FilePattern. | |