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 |
PatternElements that are resolved
(cannot be broken down further). |
| com.owenfeehan.pathpatternfinder.patternelements.unresolved |
PatternElements 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
PatternElements 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 PatternSplitDirectoriesHelper. buildPatternFromPath(Path path)Builds a pattern from a string by parsing it and splitting into separate directories.static PatternPathPatternFinder. findPatternPaths(List<Path> paths, IOCase ioCase, boolean avoidExtensionSplit)Finds the pattern in a list of paths, using rules outlined above.static PatternPathPatternFinder. 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 StringDescribePattern. apply(Pattern pattern, boolean includeVariableDescription)Generates a user-readable string describing a pattern.static StringDescribePattern. 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 voidResolvedPatternElementFactory. addConstantAndDirectoryTo(String value, Pattern pattern)LikeResolvedPatternElementFactory.addConstantTo(String,Pattern)but additionally adds a directory separator.static PatternElementResolvedPatternElementFactory. addConstantTo(char value, Pattern pattern)Creates a new constant element from a character, and adds topattern.static PatternElementResolvedPatternElementFactory. addConstantTo(String value, Pattern pattern)Creates a new constant element from a string, and adds topattern.static voidResolvedPatternElementFactory. 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 PatternUnresolvedPatternElementFactory. createUnresolvedString(PatternElement left, List<String> right, boolean requiresPeriod)Creates aPatternwith an element on the left, and a unresolved-string on the rightPatternUnresolvedPatternElementFactory. createUnresolvedString(List<PatternElement> left, List<String> right, boolean requiresPeriod)Creates aPatternwith an elements on the left, and a unresolved-string on the rightPatternUnresolvedPatternElementFactory. createUnresolvedString(List<String> list, boolean requiresPeriod)Creates aPatternwith a single-unresolved-string as elementMethods in com.owenfeehan.pathpatternfinder.patternelements.unresolved with parameters of type Pattern Modifier and Type Method Description voidUnresolvedPatternElementFactory. addUnresolvedPathsTo(List<Path> list, Pattern pattern, boolean avoidExtensionSplit)Adds unresolved-paths to the patternvoidUnresolvedPatternElementFactory. addUnresolvedStringsTo(List<String> list, Pattern pattern, boolean requiresPeriod)Adds unresolved-strings to the patternvoidUnresolvedPatternElementFactory. 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