Overview   Project   Class   Tree   Deprecated   Index 
SourceFlow 1.0.beta API Documentation
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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.


Field Summary
 override int Category
          Returns a numeric category number for the code element.
 VisualBasicComment Comment
          The constant comment property.
   
Fields inherited from class CodeElement
Category
 
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.
   
Methods inherited from class CodeElement
CompareTo, Print, PrintSeparator
 

Field Detail

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.


Constructor Detail

Constant

public Constant( string name, string value );
Creates a new constant.
Parameters:
name - the constant name
value - the constant value


Method Detail

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

 Overview   Project   Class   Tree   Deprecated   Index 
SourceFlow 1.0.beta API Documentation
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD