Class PomModifications.Insertion

    • Constructor Detail

      • Insertion

        public Insertion​(org.apache.maven.model.InputLocation start,
                         int currentIndent,
                         UnaryOperator<String> contentProducer)
        Constructor to insert content before the given start existing content on the given start index.
        Parameters:
        start - the location to insert the content (before the existing content on that line).
        currentIndent - the indent level of the current content on the line.
        contentProducer - a function that produces the content to insert, given a one-level indent string.
        See Also:
        InputLocation