Org.SourceFlow.VisualBasic
Class Constant
IComparable
|
+--CodeElement
|
+--Constant
in VisualBasicEnumeration.cs
- internal class Constant
- extends CodeElement
A class generating a Visual Basic enumeration constant
declaration.
|
Constructor Summary |
Constant( string name, string value )
Creates a new constant. |
|
Method Summary |
override void |
Print( StreamWriter output, CodeStyle style, int indent )
Prints the code element to the specified output stream. |
protected internal override void |
PrintSeparator( StreamWriter output, CodeElement prev )
Prints a separator line between this element and the
previous element in a container. |
Category
public override int Category;
-
Returns a numeric category number for the code element. A
lower category number implies that the code element should
be placed before code elements with a higher category
number within a declaration.
- Returns:
- the category number
Comment
public VisualBasicComment Comment;
-
The constant comment property.
Constant
public Constant( string name, string value );
-
Creates a new constant.
- Parameters:
name - the constant name
value - the constant value
Print
public override void Print( StreamWriter output, CodeStyle style, int indent );
-
Prints the code element to the specified output stream.
- Parameters:
output - the output stream
style - the code style to use
indent - the indentation level
PrintSeparator
protected internal override void PrintSeparator( StreamWriter output, CodeElement prev );
-
Prints a separator line between this element and the
previous element in a container. This method will NOT be
called for the first element in a container, as it has no
previous element. This method prints a single newline if
this constant contains a comment.
- Parameters:
output - the output stream
prev - the previous code element