net.sourceforge.pmd.cpd.cppast
Class Declaration

java.lang.Object
  extended bynet.sourceforge.pmd.cpd.cppast.Declaration

public class Declaration
extends java.lang.Object

Holds the various attributes of a declaration. This is filled up as the declaration is parsed.


Field Summary
(package private)  boolean isClass
          class/struct/union is indicated by CLASS.
(package private)  boolean isTypedef
          Indicates if this is a typedef declaration.
(package private)  java.lang.String name
          Name of the declarator.
(package private)  Scope scope
          Scopename.
 
Constructor Summary
Declaration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isClass

boolean isClass
class/struct/union is indicated by CLASS.


isTypedef

boolean isTypedef
Indicates if this is a typedef declaration.


name

java.lang.String name
Name of the declarator.


scope

Scope scope
Scopename. By default, it is the current scope. If the name is declared with scope override operator, it will be set to that scope.

Constructor Detail

Declaration

public Declaration()