View Javadoc

1   package net.sourceforge.pmd.cpd.cppast;
2   
3   /***
4    * Holds the various attributes of a declaration. This is filled up as the
5    * declaration is parsed.
6    */
7   
8   public class Declaration
9   {
10     /***
11      * class/struct/union is indicated by CLASS.
12      */
13     boolean isClass;
14  
15     /***
16      * Indicates if this is a typedef declaration.
17      */
18     boolean isTypedef;
19  
20     /***
21      * Name of the declarator.
22      */
23     String name;
24  
25     /***
26      * Scopename. By default, it is the current scope. If the name is declared
27      * with scope override operator, it will be set to that scope.
28      */
29     Scope scope;
30  }