View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.ast.xpath.saxon;
5   
6   /**
7    * This class is used to generate unique IDs for nodes.
8    */
9   public class IdGenerator {
10      private int id;
11  
12      public int getNextId() {
13          return id++;
14      }
15  }