View Javadoc

1   package net.sourceforge.pmd.lang.ast.xpath.saxon;
2   
3   /**
4    * This class is used to generate unique IDs for nodes.
5    */
6   public class IdGenerator {
7       private int id;
8   
9       public int getNextId() {
10  	return id++;
11      }
12  }