Class StrSubstitutorVisitor
java.lang.Object
org.craftercms.studio.impl.v1.repository.StrSubstitutorVisitor
- All Implemented Interfaces:
FileVisitor<Path>
Implementation of
FileVisitor
that replaces values in the found files- Since:
- 3.1.4
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.commons.text.matcher.StringMatcher
protected org.apache.commons.text.StringSubstitutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpostVisitDirectory
(Path dir, IOException e) preVisitDirectory
(Path dir, BasicFileAttributes attrs) visitFile
(Path file, BasicFileAttributes attrs) visitFileFailed
(Path file, IOException e)
-
Field Details
-
PREFIX
public static final org.apache.commons.text.matcher.StringMatcher PREFIX -
strSubstitutor
protected org.apache.commons.text.StringSubstitutor strSubstitutor
-
-
Constructor Details
-
StrSubstitutorVisitor
-
-
Method Details
-
preVisitDirectory
- Specified by:
preVisitDirectory
in interfaceFileVisitor<Path>
-
visitFile
- Specified by:
visitFile
in interfaceFileVisitor<Path>
- Throws:
IOException
-
visitFileFailed
- Specified by:
visitFileFailed
in interfaceFileVisitor<Path>
- Throws:
IOException
-
postVisitDirectory
- Specified by:
postVisitDirectory
in interfaceFileVisitor<Path>
-