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

Org.SourceFlow.Java
Class JavaType

IComparable
   |
   +--CodeElement
         |
         +--CodeContainer
               |
               +--JavaType

   in JavaType.cs
Direct Known Subclasses:
JavaClass, JavaInterface

public abstract class JavaType
extends CodeContainer

An abstract superclass for the Java class and interface code generators.


 
Fields inherited from class CodeContainer
Count
   
Fields inherited from class CodeElement
Category
 
Constructor Summary
protected  JavaType( int modifiers, string name, string extendsType, string implementType )
          Creates a new type code generator.
protected  JavaType( int modifiers, string name, string extendsType, string[] implementTypes )
          Creates a new type code generator.
 
Method Summary
 void AddComment( JavaComment comment )
          Adds a comment to this type.
protected void Print( StreamWriter output, CodeStyle style, int indent, string type )
          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
 

Constructor Detail

JavaType

protected JavaType( int modifiers, string name, string extendsType, string implementType );
Creates a new type code generator.
Parameters:
modifiers - the modifier constant flags
name - the type name
extendsType - the class or interface to extend
implementType - the class or interface to implement

JavaType

protected JavaType( int modifiers, string name, string extendsType, string[] implementTypes );
Creates a new type code generator.
Parameters:
modifiers - the modifier constant flags
name - the type name
extendsType - the class or interface to extend
implementTypes - the classes or interfaces to implement


Method Detail

AddComment

public void AddComment( JavaComment comment );
Adds a comment to this type.
Parameters:
comment - the new type comment

Print

protected void Print( StreamWriter output, CodeStyle style, int indent, string type );
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 (i.e. "class" or "interface")

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