View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.dfa;
5   
6   /**
7    * @author raik
8    */
9   public interface NodeType {
10  
11      int IF_EXPR = 1;
12      int IF_LAST_STATEMENT = 2;
13      int IF_LAST_STATEMENT_WITHOUT_ELSE = 3;
14      int ELSE_LAST_STATEMENT = 4;
15  
16      int WHILE_EXPR = 10;
17      int WHILE_LAST_STATEMENT = 11;
18  
19      int SWITCH_START = 20;
20      int CASE_LAST_STATEMENT = 21;
21      int SWITCH_LAST_DEFAULT_STATEMENT = 22;
22      int SWITCH_END = 23;
23  
24      int FOR_INIT = 30;
25      int FOR_EXPR = 31;
26      int FOR_UPDATE = 32;
27      int FOR_BEFORE_FIRST_STATEMENT = 33;
28      int FOR_END = 34;
29  
30      int DO_BEFORE_FIRST_STATEMENT = 40;
31      int DO_EXPR = 41;
32  
33      int RETURN_STATEMENT = 50;
34      int BREAK_STATEMENT = 51;
35      int CONTINUE_STATEMENT = 52;
36  
37      int LABEL_STATEMENT = 60;
38      int LABEL_LAST_STATEMENT = 61;
39  
40      // TODO - throw statements?
41      int THROW_STATEMENT = 70;
42  }