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 |
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). |
-
Uses of PatternElement in com.owenfeehan.pathpatternfinder
Methods in com.owenfeehan.pathpatternfinder that return PatternElement Modifier and Type Method Description PatternElement
Pattern. 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 void
Pattern. add(PatternElement elementToAdd)
Adds an element.Method parameters in com.owenfeehan.pathpatternfinder with type arguments of type PatternElement Modifier and Type Method Description static void
SplitDirectoriesHelper. 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 PatternElement
PatternElement. 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 class
ResolvedPatternElement
APatternElement
that has been resolved.class
VariableElement
APatternElement
that 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 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 PatternElement
ResolvedPatternElementFactory. constant(char value)
Creates constant element of a single character.static PatternElement
ResolvedPatternElementFactory. constant(String value)
Creates constant element of a string.static PatternElement
ResolvedPatternElementFactory. directorySeperator()
Creates an element representing a directory separator.static PatternElement
ResolvedPatternElementFactory. integer(int... values)
Creates a varying integer element of one or more ints.static PatternElement
ResolvedPatternElementFactory. integer(List<String> values)
Creates a varying integer element of one more strings.static PatternElement
ResolvedPatternElementFactory. string(String... values)
Creates a varying string element of one or more strings.static PatternElement
ResolvedPatternElementFactory. 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 Pattern
UnresolvedPatternElementFactory. createUnresolvedString(PatternElement left, List<String> right, boolean requiresPeriod)
Creates aPattern
with 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 Pattern
UnresolvedPatternElementFactory. createUnresolvedString(List<PatternElement> left, List<String> right, boolean requiresPeriod)
Creates aPattern
with an elements on the left, and a unresolved-string on the right