Uses of Class
com.owenfeehan.pathpatternfinder.Pattern
Package | Description |
---|---|
com.owenfeehan.pathpatternfinder |
Top-level package for all classes for finding a pattern in paths or strings in accordance to
certain rules.
|
com.owenfeehan.pathpatternfinder.describer |
A describer converts a
Pattern into a string
representation. |
com.owenfeehan.pathpatternfinder.patternelements |
A pattern-element is one part of a pattern after fitting against a list of paths / strings.
|
com.owenfeehan.pathpatternfinder.patternelements.resolved |
PatternElement s that are resolved
(cannot be broken down further). |
com.owenfeehan.pathpatternfinder.patternelements.unresolved |
PatternElement s that are unresolved (can
possibly be broken down further into a smaller patterns). |
com.owenfeehan.pathpatternfinder.trim |
A trim-operation attempts to find one or more new
PatternElement s by fitting against a string or
a path. |
com.owenfeehan.pathpatternfinder.trim.constantsubstring |
All classes related to particular operation of
TrimConstantSubstring . |
-
Uses of Pattern in com.owenfeehan.pathpatternfinder
Methods in com.owenfeehan.pathpatternfinder that return Pattern Modifier and Type Method Description static Pattern
SplitDirectoriesHelper. buildPatternFromPath(Path path)
Builds a pattern from a string by parsing it and splitting into separate directories.static Pattern
PathPatternFinder. findPatternPaths(List<Path> paths, IOCase ioCase, boolean avoidExtensionSplit)
Finds the pattern in a list of paths, using rules outlined above.static Pattern
PathPatternFinder. findPatternStrings(List<String> strings, IOCase ioCase)
Finds the pattern in a list of strings, using rules outlined above (from Step 3 onwards). -
Uses of Pattern in com.owenfeehan.pathpatternfinder.describer
Methods in com.owenfeehan.pathpatternfinder.describer with parameters of type Pattern Modifier and Type Method Description static String
DescribePattern. apply(Pattern pattern, boolean includeVariableDescription)
Generates a user-readable string describing a pattern.static String
DescribePattern. apply(Pattern pattern, boolean includeVariableDescription, String prefixForVariablesLine, int maxLineWidth)
LikeDescribePattern.apply(Pattern, boolean)
but with additional parameterization. -
Uses of Pattern in com.owenfeehan.pathpatternfinder.patternelements
-
Uses of Pattern in com.owenfeehan.pathpatternfinder.patternelements.resolved
Methods in com.owenfeehan.pathpatternfinder.patternelements.resolved that return types with arguments of type Pattern Modifier and Type Method Description Optional<Pattern>
ResolvedPatternElement. resolve()
Methods in com.owenfeehan.pathpatternfinder.patternelements.resolved with parameters of type Pattern Modifier and Type Method Description static void
ResolvedPatternElementFactory. addConstantAndDirectoryTo(String value, Pattern pattern)
LikeResolvedPatternElementFactory.addConstantTo(String,Pattern)
but additionally adds a directory separator.static PatternElement
ResolvedPatternElementFactory. addConstantTo(char value, Pattern pattern)
Creates a new constant element from a character, and adds topattern
.static PatternElement
ResolvedPatternElementFactory. addConstantTo(String value, Pattern pattern)
Creates a new constant element from a string, and adds topattern
.static void
ResolvedPatternElementFactory. addDirectorySeperatorTo(Pattern pattern)
Creates a new directory-seperator element, and adds topattern
. -
Uses of Pattern in com.owenfeehan.pathpatternfinder.patternelements.unresolved
Methods in com.owenfeehan.pathpatternfinder.patternelements.unresolved that return Pattern Modifier and Type Method Description Pattern
UnresolvedPatternElementFactory. createUnresolvedString(PatternElement left, List<String> right, boolean requiresPeriod)
Creates aPattern
with an element on the left, and a unresolved-string on the rightPattern
UnresolvedPatternElementFactory. createUnresolvedString(List<PatternElement> left, List<String> right, boolean requiresPeriod)
Creates aPattern
with an elements on the left, and a unresolved-string on the rightPattern
UnresolvedPatternElementFactory. createUnresolvedString(List<String> list, boolean requiresPeriod)
Creates aPattern
with a single-unresolved-string as elementMethods in com.owenfeehan.pathpatternfinder.patternelements.unresolved with parameters of type Pattern Modifier and Type Method Description void
UnresolvedPatternElementFactory. addUnresolvedPathsTo(List<Path> list, Pattern pattern, boolean avoidExtensionSplit)
Adds unresolved-paths to the patternvoid
UnresolvedPatternElementFactory. addUnresolvedStringsTo(List<String> list, Pattern pattern, boolean requiresPeriod)
Adds unresolved-strings to the patternvoid
UnresolvedPatternElementFactory. addUnresolvedStringsTo(List<String> list, Pattern pattern, boolean requiresPeriod, Skipper skipper)
Adds unresolved-strings to the pattern with additional instructions to skip certain types of operations (Skipper) -
Uses of Pattern in com.owenfeehan.pathpatternfinder.trim
Methods in com.owenfeehan.pathpatternfinder.trim that return types with arguments of type Pattern Modifier and Type Method Description Optional<Pattern>
TrimCommonPathRoot. trim(List<Path> source)
Optional<Pattern>
TrimConstantString. trim(List<String> source)
Optional<Pattern>
TrimInteger. trim(List<String> source)
Optional<Pattern>
TrimOperation. trim(List<T> source)
Attempts to trim the list of objects by finding aPattern
.Optional<Pattern>
TrimOperationOrList. trim(List<T> source)
Optional<Pattern>
TrimSplitByChar. trim(List<String> source)
-
Uses of Pattern in com.owenfeehan.pathpatternfinder.trim.constantsubstring