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

Org.SourceFlow.VisualBasic
Class VisualBasicImports

IComparable
   |
   +--CodeElement
         |
         +--VisualBasicImports

   in VisualBasicImports.cs

public class VisualBasicImports
extends CodeElement

A class generating a Visual Basic imports declaration.


Field Summary
 override int Category
          Returns a numeric category number for the code element.
   
Fields inherited from class CodeElement
Category
 
Constructor Summary
VisualBasicImports( string name )
          Creates a new Visual Basic imports declaration.
 
Method Summary
 override int CompareTo( object obj )
          Compares this object to another one.
 override bool Equals( object obj )
          Returns true if this object is equal to another.
 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.
 override string ToString()
          Returns the namespace to use.
   
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


Constructor Detail

VisualBasicImports

public VisualBasicImports( string name );
Creates a new Visual Basic imports declaration.
Parameters:
name - the namespace being used


Method Detail

CompareTo

public override int CompareTo( object obj );
Compares this object to another one. The comparison is based primarily on the code element category, and secondarily on the namespace.
Parameters:
obj - the object to compare to
Returns:
negative if this object preceeds the other one, zero (0) if the objects are equal, or positive if this object succeeds the other one

Equals

public override bool Equals( object obj );
Returns true if this object is equal to another.
Parameters:
obj - the object to compare to
Returns:
true if the objects are equal, or false otherwise

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 only if the previous element had another category number.
Parameters:
output - the output stream
prev - the previous code element

ToString

public override string ToString();
Returns the namespace to use.
Returns:
the namespace to use

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