01: package org.acm.seguin.pmd.cpd.cppast;
02:
03: /**
04: * Holds the various attributes of a declaration. This is filled up as the
05: * declaration is parsed.
06: */
07:
08: public class Declaration {
09: /**
10: * class/struct/union is indicated by CLASS.
11: */
12: boolean isClass;
13:
14: /**
15: * Indicates if this is a typedef declaration.
16: */
17: boolean isTypedef;
18:
19: /**
20: * Name of the declarator.
21: */
22: String name;
23:
24: /**
25: * Scopename. By default, it is the current scope. If the name is declared
26: * with scope override operator, it will be set to that scope.
27: */
28: Scope scope;
29: }
|