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

Org.SourceFlow.VisualBasic
Class VisualBasicType

IComparable
   |
   +--CodeElement
         |
         +--CodeContainer
               |
               +--VisualBasicType

   in VisualBasicType.cs
Direct Known Subclasses:
VisualBasicClass, VisualBasicEnumeration

public abstract class VisualBasicType
extends CodeContainer

An abstract superclass for the various Visual Basic type code generators.


Field Summary
protected internal VisualBasicComment comment
          The type comment.
protected internal string[] extendTypes
          The names of the types that this type extends and/or implements.
protected internal int modifiers
          The type modifier flags.
protected internal string name
          The type name.
   
Fields inherited from class CodeContainer
Count
   
Fields inherited from class CodeElement
Category
 
Constructor Summary
protected  internal VisualBasicType( int modifiers, string name, string extendType )
          Creates a new type code generator with the specified access modifier that extends a specified type.
protected  internal VisualBasicType( int modifiers, string name, string[] extendTypes )
          Creates a new type code generator with the specified access modifier that extends a specified type.
 
Method Summary
 void AddComment( VisualBasicComment comment )
          Sets the type comment.
protected internal void Print( StreamWriter output, CodeStyle style, int indent, string type, bool compact )
          Prints the type to the specified stream.
 override string ToString()
          Returns the type name.
   
Methods inherited from class CodeContainer
AddElement, PrintContents
   
Methods inherited from class CodeElement
CompareTo, Print, PrintSeparator
 

Field Detail

comment

protected internal VisualBasicComment comment;
The type comment.

extendTypes

protected internal string[] extendTypes;
The names of the types that this type extends and/or implements.

modifiers

protected internal int modifiers;
The type modifier flags.

name

protected internal string name;
The type name.


Constructor Detail

VisualBasicType

protected internal VisualBasicType( int modifiers, string name, string extendType );
Creates a new type code generator with the specified access modifier that extends a specified type. If the extend type null or "" is specified, no extends declaration will be printed.
Parameters:
modifiers - the modifier flag constants
name - the type name
extendType - the type to extend and/or implement

VisualBasicType

protected internal VisualBasicType( int modifiers, string name, string[] extendTypes );
Creates a new type code generator with the specified access modifier that extends a specified type.
Parameters:
modifiers - the modifier flag constants
name - the type name
extendTypes - the types to extend and/or implement


Method Detail

AddComment

public void AddComment( VisualBasicComment comment );
Sets the type comment. This method will remove any previous type comment.
Parameters:
comment - the new type comment

Print

protected internal void Print( StreamWriter output, CodeStyle style, int indent, string type, bool compact );
Prints the type to the specified stream.
Parameters:
output - the output stream
style - the code style to use
indent - the indentation level
type - the type name
compact - the compact printing flag

ToString

public override string ToString();
Returns the type name.
Returns:
the type name

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