|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
IComparable
|
+--CodeElement
|
+--CVariable
in CVariable.csA class generating a C variable declaration.
| Field Summary | |
override int |
Category
Returns a numeric category number for the code element. |
const int |
CONST
The const modifier constant. |
const int |
EXTERN
The extern modifier constant. |
const int |
STATIC
The static modifier constant. |
| Fields inherited from class CodeElement |
Category |
| Constructor Summary | |
CVariable( string type, string name )
Creates a new variable with the specified type and name. |
|
CVariable( string type, bool array, string name )
Creates a new variable with the specified type and name. |
|
CVariable( int modifiers, string type, bool array, string name )
Creates a new variable with the specified type and name. |
|
| Method Summary | |
void |
AddComment( CComment comment )
Adds a comment to this variable. |
void |
AddInitValue( string value )
Adds an initialization value. |
override void |
Print( StreamWriter output, CodeStyle style, int indent )
Prints the code element to the specified output stream. |
override string |
ToString()
Returns the variable name. |
| Methods inherited from class CodeElement |
CompareTo, Print, PrintSeparator |
| Field Detail |
public override int Category;
public const int CONST;
public const int EXTERN;
public const int STATIC;
| Constructor Detail |
public CVariable( string type, string name );
type - the variable type
name - the variable namepublic CVariable( string type, bool array, string name );
type - the variable type
array - the array type flag
name - the variable namepublic CVariable( int modifiers, string type, bool array, string name );
modifiers - the modifier flags to use (or zero)
type - the variable type
array - the array type flag
name - the variable name| Method Detail |
public void AddComment( CComment comment );
comment - the comment to addpublic void AddInitValue( string value );
value - the valuepublic override void Print( StreamWriter output, CodeStyle style, int indent );
output - the output stream
style - the code style to use
indent - the indentation levelpublic override string ToString();
|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||