Uses of Class
com.owenfeehan.pathpatternfinder.patternelements.PatternElement
| 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.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). |
-
Uses of PatternElement in com.owenfeehan.pathpatternfinder
Methods in com.owenfeehan.pathpatternfinder that return PatternElement Modifier and Type Method Description PatternElementPattern. get(int index)Returns true iff the element at index is unresolved.Methods in com.owenfeehan.pathpatternfinder that return types with arguments of type PatternElement Modifier and Type Method Description Iterator<PatternElement>Pattern. iterator()Methods in com.owenfeehan.pathpatternfinder with parameters of type PatternElement Modifier and Type Method Description voidPattern. add(PatternElement elementToAdd)Adds an element.Method parameters in com.owenfeehan.pathpatternfinder with type arguments of type PatternElement Modifier and Type Method Description static voidSplitDirectoriesHelper. splitStringIntoElements(String stringToParse, Consumer<PatternElement> elementConsumer)Parses a string so that any characters matching the path separation are added separately.Constructors in com.owenfeehan.pathpatternfinder with parameters of type PatternElement Constructor Description Pattern(PatternElement element)Create with 1 element. -
Uses of PatternElement in com.owenfeehan.pathpatternfinder.patternelements
Methods in com.owenfeehan.pathpatternfinder.patternelements that return PatternElement Modifier and Type Method Description PatternElementPatternElement. reverseReturn()Reverses the pattern. -
Uses of PatternElement in com.owenfeehan.pathpatternfinder.patternelements.resolved
Subclasses of PatternElement in com.owenfeehan.pathpatternfinder.patternelements.resolved Modifier and Type Class Description classResolvedPatternElementAPatternElementthat has been resolved.classVariableElementAPatternElementthat is resolved and varies across the list of values.Methods in com.owenfeehan.pathpatternfinder.patternelements.resolved that return PatternElement Modifier and Type Method Description 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 PatternElementResolvedPatternElementFactory. constant(char value)Creates constant element of a single character.static PatternElementResolvedPatternElementFactory. constant(String value)Creates constant element of a string.static PatternElementResolvedPatternElementFactory. directorySeperator()Creates an element representing a directory separator.static PatternElementResolvedPatternElementFactory. integer(int... values)Creates a varying integer element of one or more ints.static PatternElementResolvedPatternElementFactory. integer(List<String> values)Creates a varying integer element of one more strings.static PatternElementResolvedPatternElementFactory. string(String... values)Creates a varying string element of one or more strings.static PatternElementResolvedPatternElementFactory. string(List<String> values)Creates a varying string element from a list of strings. -
Uses of PatternElement in com.owenfeehan.pathpatternfinder.patternelements.unresolved
Methods in com.owenfeehan.pathpatternfinder.patternelements.unresolved with parameters of type PatternElement 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 rightMethod parameters in com.owenfeehan.pathpatternfinder.patternelements.unresolved with type arguments of type PatternElement Modifier and Type Method Description PatternUnresolvedPatternElementFactory. createUnresolvedString(List<PatternElement> left, List<String> right, boolean requiresPeriod)Creates aPatternwith an elements on the left, and a unresolved-string on the right