aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/template/Section.java
blob: c0d9e651484ae5ce0df1d7f5c720b2b83b8742cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.task.util.template;

import com.yahoo.vespa.hosted.node.admin.task.util.text.CursorRange;

/**
 * A section of a template text.
 *
 * @see Template
 * @author hakonhall
 */
abstract class Section {
    private final CursorRange range;

    protected Section(CursorRange range) {
        this.range = range;
    }

    protected CursorRange range() { return range; }

    abstract void appendTo(StringBuilder buffer);
}