Class DefaultEditor
java.lang.Object
io.micronaut.gradle.docker.editor.DefaultEditor
- All Implemented Interfaces:
Editor
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEditor(org.gradle.api.model.ObjectFactory objects, Optional<DefaultEditor> parent, List<String> lines, Optional<String> before, Optional<String> after) -
Method Summary
Modifier and TypeMethodDescriptionvoidRestricts edition to lines after the given line.voidRestricts edition to lines before the given line.getLines()voidInserts the provided lines after the current lower bound.voidReplaces lines matching the current lower and upper bounds with the provided replacement.voidReplaces lines matching the current lower and upper bounds with the replacement, if they match the line pattern.voidreplaceRegex(String regex, String replacement) Replaces strings matching the current lower and upper bounds with the replacement, if they match the line pattern.
-
Constructor Details
-
DefaultEditor
-
-
Method Details
-
before
Description copied from interface:EditorRestricts edition to lines before the given line. -
after
Description copied from interface:EditorRestricts edition to lines after the given line. -
replace
Description copied from interface:EditorReplaces lines matching the current lower and upper bounds with the provided replacement. -
replace
Description copied from interface:EditorReplaces lines matching the current lower and upper bounds with the replacement, if they match the line pattern. -
replaceRegex
Description copied from interface:EditorReplaces strings matching the current lower and upper bounds with the replacement, if they match the line pattern.- Specified by:
replaceRegexin interfaceEditor- Parameters:
regex- the regex to look forreplacement- the replacement
-
insert
Description copied from interface:EditorInserts the provided lines after the current lower bound. -
getLines
-