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