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    * This interface allows a Java Class to be associated with a node.
8    */
9   public interface TypeNode {
10  
11      /**
12       * Get the Java Class associated with this node.
13       * 
14       * @return The Java Class, may return <code>null</code>.
15       */
16      Class<?> getType();
17  
18      /**
19       * Set the Java Class associated with this node.
20       * 
21       * @param type A Java Class
22       */
23      void setType(Class<?> type);
24  }