|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
IComparable
|
+--CodeElement
|
+--JavaVariable
in JavaVariable.csA class generating a Java variable declaration. The variable declaration should be placed as a member in a class.
| Field Summary | |
override int |
Category
Returns a numeric category number for the code element. |
const int |
FINAL
The final modifier constant. |
const int |
PACKAGE_LOCAL
The package local access modifier constant (i.e. no modifier). |
const int |
PRIVATE
The private access modifier constant. |
const int |
PROTECTED
The protected access modifier constant. |
const int |
PUBLIC
The public access modifier constant. |
const int |
STATIC
The static modifier constant. |
const int |
TRANSIENT
The transient modifier constant. |
const int |
VOLATILE
The volatile modifier constant. |
| Fields inherited from class CodeElement |
Category |
| Constructor Summary | |
JavaVariable( string type, string name )
Creates a new private variable with the specified type and name. |
|
JavaVariable( int modifiers, string type, string name )
Creates a new variable with the specified modifiers, type and name. |
|
JavaVariable( string type, string name, string initValue )
Creates a new private variable with the specified type, name and initializer. |
|
JavaVariable( int modifiers, string type, string name, string initValue )
Creates a new variable with the specified modifiers, type, name and initializer. |
|
| Method Summary | |
void |
AddComment( JavaComment comment )
Adds a comment to this variable. |
void |
AddVectorInit( string elementValue )
Adds initialization code for an array element 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 FINAL;
public const int PACKAGE_LOCAL;
public const int PRIVATE;
public const int PROTECTED;
public const int PUBLIC;
public const int STATIC;
public const int TRANSIENT;
public const int VOLATILE;
| Constructor Detail |
public JavaVariable( string type, string name );
type - the variable type
name - the variable namepublic JavaVariable( int modifiers, string type, string name );
modifiers - the modifier flags to use
type - the variable type
name - the variable namepublic JavaVariable( string type, string name, string initValue );
type - the variable type
name - the variable name
initValue - the initialize valuepublic JavaVariable( 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 AddComment( JavaComment comment );
comment - the comment to addpublic void AddVectorInit( string elementValue );
elementValue - the array element 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 | |||||||