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

Org.SourceFlow.Java
Class JavaInterface

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

   in JavaInterface.cs

public class JavaInterface
extends JavaType

A class generating a Java interface declaration.


Field Summary
 override int Category
          Returns a numeric category number for the code element.
 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
JavaInterface( string name )
          Creates a new interface code generator with a public access modifier.
JavaInterface( int modifiers, string name )
          Creates a new interface code generator with the specified access modifier.
JavaInterface( int modifiers, string name, string extendType )
          Creates a new class code generator with the specified access modifier that extends the specified class.
 
Method Summary
 void AddMethod( JavaMethod member )
          Adds a method declaration to the interface.
 void AddVariable( JavaVariable member )
          Adds a variable to the interface.
 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

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

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 a class.

PROTECTED

public const int PROTECTED;
The protected access modifier constant. May only be used ' when declared inside a 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 a class.

STRICTFP

public const int STRICTFP;
The strictfp modifier constant.


Constructor Detail

JavaInterface

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

JavaInterface

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

JavaInterface

public JavaInterface( int modifiers, string name, string extendType );
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
extendType - the type to extend


Method Detail

AddMethod

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

AddVariable

public void AddVariable( JavaVariable member );
Adds a variable to the interface.
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