View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.java.ast;
5   
6   import net.sourceforge.pmd.lang.ast.AbstractNode;
7   import net.sourceforge.pmd.lang.java.javadoc.JavadocTag;
8   
9   public class JavadocElement extends AbstractNode {
10  
11  	private final JavadocTag tag;
12  	
13  	public JavadocElement(int theBeginLine, int theEndLine, int theBeginColumn,	int theEndColumn, JavadocTag theTag) {
14  		super(-1, theBeginLine, theEndLine, theBeginColumn, theEndColumn);
15  
16  		tag = theTag;
17  	}
18  
19  	public JavadocTag tag() {
20  		return tag;
21  	}
22  
23  	@Override
24  	public String toString() {
25  		return tag.label + " : " + tag.description;
26  	}
27  }