|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
IComparable
|
+--CodeElement
|
+--CodeContainer
|
+--JavaType
|
+--JavaClass
in JavaClass.csA 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 |
public const int ABSTRACT;
public override int Category;
public const int FINAL;
public const int PACKAGE_LOCAL;
public const int PRIVATE;
public const int PROTECTED;
public const int PUBLIC;
public const int STATIC;
public const int STRICTFP;
| Constructor Detail |
public JavaClass( string name );
name - the class namepublic JavaClass( int modifiers, string name );
modifiers - the modifier constant flags
name - the class namepublic JavaClass( int modifiers, string name, string extendClass );
modifiers - the modifier constant flags
name - the class name
extendClass - the class to extendpublic JavaClass( int modifiers, string name, string extendClass, string implementClass );
modifiers - the modifier constant flags
name - the class name
extendClass - the class to extend
implementClass - the class to implementpublic JavaClass( int modifiers, string name, string extendClass, string[] implementClasses );
modifiers - the modifier constant flags
name - the class name
extendClass - the class to extend
implementClasses - the classes to implement| Method Detail |
public void AddClass( JavaClass member );
member - the member to addpublic void AddConstructor( JavaConstructor member );
member - the member to addpublic void AddMethod( JavaMethod member );
member - the member to addpublic void AddVariable( JavaVariable member );
member - the member to addpublic override void Print( StreamWriter output, CodeStyle style, int indent );
output - the output stream
style - the code style to use
indent - the indentation level
|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||