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   /**
7    * An extension of the SimpleJavaNode which implements the TypeNode interface.
8    * 
9    * @see AbstractJavaNode
10   * @see TypeNode
11   */
12  public abstract class AbstractJavaTypeNode extends AbstractJavaNode implements TypeNode {
13  
14      public AbstractJavaTypeNode(int i) {
15  	super(i);
16      }
17  
18      public AbstractJavaTypeNode(JavaParser p, int i) {
19  	super(p, i);
20      }
21  
22      private Class<?> type;
23  
24      public Class<?> getType() {
25  	return type;
26      }
27  
28      public void setType(Class<?> type) {
29  	this.type = type;
30      }
31  }