View Javadoc

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