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