Populate data/ hierarchy
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / meta / DeclarationInText.java
1 /*
2  * Copyright (c) 2021 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.yang.model.api.meta;
9
10 import com.google.common.annotations.Beta;
11
12 /**
13  * A {@link DeclarationReference} to a position within a some text document.
14  */
15 @Beta
16 public interface DeclarationInText extends DeclarationReference {
17     /**
18      * Return the line where the declaration starts.
19      *
20      * @return A positive line number.
21      */
22     int startLine();
23
24     /**
25      * Return the column where the declaration starts.
26      *
27      * @return A positive column number.
28      */
29     int startColumn();
30 }