Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members

CCM::VariableDecl Class Reference

Inheritance diagram for CCM::VariableDecl:

CCM::Variable List of all members.

Detailed Description

Represents a typed variable declaration with attributes.

This is mainly used for storing method parameters. This class implements IEnumerable to be able to iterate over all possible values.


Public Member Functions

 VariableDecl (string name, Type type, Class stubClass, bool array, List attrs, bool _public)
 Creates an uninitialized (null) variable or class field.

override string ToString ()
IEnumerator GetEnumerator ()
 Return an enumerator over all possible values.

Attribute getAttribute (string name)
 Return the first attribute with given name, or null if no such attribute exists.

List getAttributes ()
 Return a List of all attributes or null if no attributes exist.


Public Attributes

string name
Type type
Class stubClass
bool array
bool _public

Protected Attributes

List attrs


Constructor & Destructor Documentation

CCM::VariableDecl::VariableDecl string  name,
Type  type,
Class  stubClass,
bool  array,
List  attrs,
bool  _public
 

Creates an uninitialized (null) variable or class field.

Parameters:
name Variable name
type Variable type (e. g. 0.GetType() )
stubClass If type is Class.GetType(), then the variable is a stub reference and stubClass the concrete stub class
array If true, then this variable is an array of type
attrs List of Attributes
_public Whether this is a public field


Member Function Documentation

Attribute CCM::VariableDecl::getAttribute string  name  ) 
 

Return the first attribute with given name, or null if no such attribute exists.

List CCM::VariableDecl::getAttributes  ) 
 

Return a List of all attributes or null if no attributes exist.

IEnumerator CCM::VariableDecl::GetEnumerator  ) 
 

Return an enumerator over all possible values.

override string CCM::VariableDecl::ToString  ) 
 

Reimplemented in CCM::Variable.


Member Data Documentation

bool CCM::VariableDecl::_public
 

bool CCM::VariableDecl::array
 

List CCM::VariableDecl::attrs [protected]
 

string CCM::VariableDecl::name
 

Class CCM::VariableDecl::stubClass
 

Type CCM::VariableDecl::type
 


The documentation for this class was generated from the following file:
Generated on Mon Jun 21 01:20:50 2004 for cs2ccmb by doxygen 1.3.7