LinkTree.java revision 3193:3b3bea483542
1130561Sobrien/*
2130561Sobrien * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
333965Sjdp * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
433965Sjdp *
577298Sobrien * This code is free software; you can redistribute it and/or modify it
6218822Sdim * under the terms of the GNU General Public License version 2 only, as
733965Sjdp * published by the Free Software Foundation.  Oracle designates this
833965Sjdp * particular file as subject to the "Classpath" exception as provided
933965Sjdp * by Oracle in the LICENSE file that accompanied this code.
1033965Sjdp *
1133965Sjdp * This code is distributed in the hope that it will be useful, but WITHOUT
1233965Sjdp * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1333965Sjdp * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1433965Sjdp * version 2 for more details (a copy is included in the LICENSE file that
1533965Sjdp * accompanied this code).
1633965Sjdp *
1733965Sjdp * You should have received a copy of the GNU General Public License version
1833965Sjdp * 2 along with this work; if not, write to the Free Software Foundation,
1933965Sjdp * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20218822Sdim *
2133965Sjdp * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2233965Sjdp * or visit www.oracle.com if you need additional information or have any
23130561Sobrien * questions.
24130561Sobrien */
25130561Sobrien
26130561Sobrienpackage com.sun.source.doctree;
27104834Sobrien
28218822Sdimimport java.util.List;
29218822Sdim
30218822Sdim/**
31130561Sobrien * A tree node for an @link or @linkplain inline tag.
32218822Sdim *
33218822Sdim * <p>
34218822Sdim * {&#064;link reference label} <br>
35130561Sobrien * {&#064;linkplain reference label }
36218822Sdim *
37218822Sdim * @since 1.8
38218822Sdim */
39130561Sobrienpublic interface LinkTree extends InlineTagTree {
4033965Sjdp    /**
41130561Sobrien     * Returns the reference of a link.
4233965Sjdp     * @return the reference
43130561Sobrien     */
44130561Sobrien    ReferenceTree getReference();
4538889Sjdp
46130561Sobrien    /**
4733965Sjdp     * Returns the label, if any, of the link.
48130561Sobrien     * @return the label
49130561Sobrien     */
50130561Sobrien    List<? extends DocTree> getLabel();
51130561Sobrien}
52130561Sobrien