| JavaDoq: ASTNode.java |
01
02 /*
03 * JavaDoq 1.0 - DOCUment JAVA In Source
04 * Copyright (C) 2008-2011 J.J.Liu<jianjunliu@126.com> <http://www.javadoq.com>
05 *
06 * This program is free software: you can redistribute it and/or modify
07 * it under the terms of the GNU Affero General Public License as published by
08 * the Free Software Foundation, either version 3 of the License, or
09 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
15 *
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 package com.javadoq.javadoc;
21
22 /**
23 * <p>An abstract base class for Javadoc nodes.</p>
24 *
25 * @author <a href="mailto:jianjunliu@126.com">J.J.Liu (Jianjun Liu)</a> at <a href="http://www.javadoq.com" target="_blank">http://www.javadoq.com</a>
26 */
27 public abstract class ASTNode extends SimpleNode
28 {
29 /**
30 * <p>Constructs a {@link ASTNode} without a JavadocParser.</p>
31 * @param i The id.
32 * @since 1.0
33 */
34 protected ASTNode(int i) {
35 super(i);
36 }
37
38 /**
39 * <p>Constructs a {@link ASTNode} with a JavadocParser.</p>
40 * @param p The JavadocParser
41 * @param i The id.
42 * @since 1.0
43 */
44 protected ASTNode(JavadocParser p, int i) {
45 super(p, i);
46 }
47
48 /**
49 * <p>The first token of this node.</p>
50 * @since 1.0
51 */
52 public Token firstToken;
53 /**
54 * <p>The last token of this node.</p>
55 * @since 1.0
56 */
57 public Token lastToken;
58 }
| JavaDoq: ASTNode.java |