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.StringMatcherprotected 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:
preVisitDirectoryin interfaceFileVisitor<Path>
-
visitFile
- Specified by:
visitFilein interfaceFileVisitor<Path>- Throws:
IOException
-
visitFileFailed
- Specified by:
visitFileFailedin interfaceFileVisitor<Path>- Throws:
IOException
-
postVisitDirectory
- Specified by:
postVisitDirectoryin interfaceFileVisitor<Path>
-