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

Org.SourceFlow.VisualBasic
Class VisualBasicClass

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

   in VisualBasicClass.cs

public class VisualBasicClass
extends VisualBasicType

A class generating a Visual Basic class declaration.


Field Summary
 override int Category
          Returns a numeric category number for the code element.
 const int FRIEND
          The internal access modifier constant.
 const int MUST_INHERIT
          The must inherit modifier constant.
 const int NOT_INHERITABLE
          The not inheritable modifier constant.
 const int PRIVATE
          The private access modifier constant.
 const int PROTECTED
          The protected access modifier constant.
 const int PROTECTED_FRIEND
          The protected internal access modifier constant.
 const int PUBLIC
          The public access modifier constant.
 const int SHADOWS
          The shadows modifier constant.
   
Fields inherited from class VisualBasicType
modifiers, name, extendTypes, comment
   
Fields inherited from class CodeContainer
Count
   
Fields inherited from class CodeElement
Category
 
Constructor Summary
VisualBasicClass( string name )
          Creates a new class code generator with a public access modifier.
VisualBasicClass( int modifiers, string name )
          Creates a new class code generator with the specified modifiers.
VisualBasicClass( int modifiers, string name, string extendsClass )
          Creates a new class code generator with the specified access modifier that extends the specified class.
VisualBasicClass( int modifiers, string name, string[] extendClasses )
          Creates a new class code generator with the specified access modifier that extends and implements the specified classes or interfaces.
 
Method Summary
 void AddClass( VisualBasicClass member )
          Adds an inner class as a member.
 void AddConstructor( VisualBasicConstructor member )
          Adds a constructor to the class.
 void AddEnumeration( VisualBasicEnumeration member )
          Adds an enumeration as a member.
 void AddMethod( VisualBasicMethod member )
          Adds a method to the class.
 override void Print( StreamWriter output, CodeStyle style, int indent )
          Prints the class to the specified stream.
   
Methods inherited from class VisualBasicType
ToString, AddComment, Print
   
Methods inherited from class CodeContainer
AddElement, PrintContents
   
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

FRIEND

public const int FRIEND;
The internal access modifier constant.

MUST_INHERIT

public const int MUST_INHERIT;
The must inherit modifier constant.

NOT_INHERITABLE

public const int NOT_INHERITABLE;
The not inheritable modifier constant.

PRIVATE

public const int PRIVATE;
The private access modifier constant. May only be used when declared inside another type.

PROTECTED

public const int PROTECTED;
The protected access modifier constant. May only be used when declared inside another type.

PROTECTED_FRIEND

public const int PROTECTED_FRIEND;
The protected internal access modifier constant. May only be used when declared inside another type.

PUBLIC

public const int PUBLIC;
The public access modifier constant.

SHADOWS

public const int SHADOWS;
The shadows modifier constant. May only be used when declared inside another type.


Constructor Detail

VisualBasicClass

public VisualBasicClass( string name );
Creates a new class code generator with a public access modifier.
Parameters:
name - the class name

VisualBasicClass

public VisualBasicClass( int modifiers, string name );
Creates a new class code generator with the specified modifiers.
Parameters:
modifiers - the modifier flag constants
name - the class name

VisualBasicClass

public VisualBasicClass( int modifiers, string name, string extendsClass );
Creates a new class code generator with the specified access modifier that extends the specified class.
Parameters:
modifiers - the modifier flag constants
name - the class name
extendsClass - the class to extend or implement

VisualBasicClass

public VisualBasicClass( int modifiers, string name, string[] extendClasses );
Creates a new class code generator with the specified access modifier that extends and implements the specified classes or interfaces.
Parameters:
modifiers - the modifier flag constants
name - the class name
extendClasses - the classes to extend or implement


Method Detail

AddClass

public void AddClass( VisualBasicClass member );
Adds an inner class as a member.
Parameters:
member - the inner class to add

AddConstructor

public void AddConstructor( VisualBasicConstructor member );
Adds a constructor to the class.
Parameters:
member - the member to add

AddEnumeration

public void AddEnumeration( VisualBasicEnumeration member );
Adds an enumeration as a member.
Parameters:
member - the enumeration to add

AddMethod

public void AddMethod( VisualBasicMethod member );
Adds a method to the class.
Parameters:
member - the member to add

Print

public override void Print( StreamWriter output, CodeStyle style, int indent );
Prints the class to the specified stream.
Parameters:
out - the output stream
style - the code style to use
indent - the indentation level

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