|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
IComparable
|
+--CodeElement
|
+--VisualBasicVariable
in VisualBasicVariable.csA class generating a Visual Basic variable declaration.
| Field Summary | |
override int |
Category
Returns a numeric category number for the code element. |
const int |
FRIEND
The friend access modifier constant. |
const int |
PRIVATE
The private access modifier constant. |
const int |
PROTECTED
The protected access modifier constant. |
const int |
PROTECTED_FRIEND
The protected friend access modifier constant. |
const int |
PUBLIC
The public access modifier constant. |
const int |
READONLY
The readonly modifier constant. |
const int |
SHADOWS
The shadows modifier constant. |
const int |
SHARED
The shared modifier constant. |
| Fields inherited from class CodeElement |
Category |
| Constructor Summary | |
VisualBasicVariable( string type, string name )
Creates a new variable with the specified type and name. |
|
VisualBasicVariable( int modifiers, string type, string name )
Creates a new variable with the specified modifiers, type and name. |
|
VisualBasicVariable( string type, string name, string initValue )
Creates a new variable with the specified type, name and initializer. |
|
VisualBasicVariable( int modifiers, string type, string name, string initValue )
Creates a new variable with the specified modifiers, type, name and initializer. |
|
| Method Summary | |
void |
AddArrayInit( string elementValue )
Adds initialization code for an array element value. |
void |
AddComment( VisualBasicComment comment )
Adds a comment to this variable. |
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 FRIEND;
public const int PRIVATE;
public const int PROTECTED;
public const int PROTECTED_FRIEND;
public const int PUBLIC;
public const int READONLY;
public const int SHADOWS;
public const int SHARED;
| Constructor Detail |
public VisualBasicVariable( string type, string name );
type - the variable type
name - the variable namepublic VisualBasicVariable( int modifiers, string type, string name );
modifiers - the modifier flags to use
type - the variable type
name - the variable namepublic VisualBasicVariable( string type, string name, string initValue );
type - the variable type
name - the variable name
initValue - the initialize valuepublic VisualBasicVariable( int modifiers, string type, string name, string initValue );
modifiers - the modifier flags to use
type - the variable type
name - the variable name
initValue - the initialize value| Method Detail |
public void AddArrayInit( string elementValue );
elementValue - the array element valuepublic void AddComment( VisualBasicComment comment );
comment - the comment to addpublic 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 | |||||||