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

Org.SourceFlow.Java
Class JavaClass

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

   in JavaClass.cs

public class JavaClass
extends JavaType

A class generating a Java class declaration.


Field Summary
 const int ABSTRACT
          The abstract modifier constant.
 override int Category
          Returns a numeric category number for the code element.
 const int FINAL
          The final modifier constant.
 const int PACKAGE_LOCAL
          The package local access modifier constant (i.e. no modifier).
 const int PRIVATE
          The private access modifier constant.
 const int PROTECTED
          The protected access modifier constant.
 const int PUBLIC
          The public access modifier constant.
 const int STATIC
          The static modifier constant.
 const int STRICTFP
          The strictfp modifier constant.
   
Fields inherited from class CodeContainer
Count
   
Fields inherited from class CodeElement
Category
 
Constructor Summary
JavaClass( string name )
          Creates a new class code generator with a public access modifier.
JavaClass( int modifiers, string name )
          Creates a new class code generator with the specified access modifier.
JavaClass( int modifiers, string name, string extendClass )
          Creates a new class code generator with the specified access modifier that extends the specified class.
JavaClass( int modifiers, string name, string extendClass, string implementClass )
          Creates a new class code generator with the specified access modifier that extends and implements the specified classes or interfaces.
JavaClass( int modifiers, string name, string extendClass, string[] implementClasses )
          Creates a new class code generator with the specified access modifier that extends and implements the specified classes or interfaces.
 
Method Summary
 void AddClass( JavaClass member )
          Adds an inner class to this class.
 void AddConstructor( JavaConstructor member )
          Adds a constructor to the class.
 void AddMethod( JavaMethod member )
          Adds a method to the class.
 void AddVariable( JavaVariable member )
          Adds a variable to the class.
 override void Print( StreamWriter output, CodeStyle style, int indent )
          Prints the code element to the specified output stream.
   
Methods inherited from class JavaType
ToString, AddComment, Print
   
Methods inherited from class CodeContainer
AddElement, PrintContents
   
Methods inherited from class CodeElement
CompareTo, Print, PrintSeparator
 

Field Detail

ABSTRACT

public const int ABSTRACT;
The abstract modifier constant.

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

FINAL

public const int FINAL;
The final modifier constant.

PACKAGE_LOCAL

public const int PACKAGE_LOCAL;
The package local access modifier constant (i.e. no modifier).

PRIVATE

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

PROTECTED

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

PUBLIC

public const int PUBLIC;
The public access modifier constant.

STATIC

public const int STATIC;
The static modifier constant. May only be used when declared inside another class.

STRICTFP

public const int STRICTFP;
The strictfp modifier constant.


Constructor Detail

JavaClass

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

JavaClass

public JavaClass( int modifiers, string name );
Creates a new class code generator with the specified access modifier.
Parameters:
modifiers - the modifier constant flags
name - the class name

JavaClass

public JavaClass( int modifiers, string name, string extendClass );
Creates a new class code generator with the specified access modifier that extends the specified class.
Parameters:
modifiers - the modifier constant flags
name - the class name
extendClass - the class to extend

JavaClass

public JavaClass( int modifiers, string name, string extendClass, string implementClass );
Creates a new class code generator with the specified access modifier that extends and implements the specified classes or interfaces.
Parameters:
modifiers - the modifier constant flags
name - the class name
extendClass - the class to extend
implementClass - the class to implement

JavaClass

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


Method Detail

AddClass

public void AddClass( JavaClass member );
Adds an inner class to this class.
Parameters:
member - the member to add

AddConstructor

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

AddMethod

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

AddVariable

public void AddVariable( JavaVariable member );
Adds a variable to the class.
Parameters:
member - the member to add

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

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