Org.SourceFlow.Java
Class JavaPackage
IComparable
|
+--CodeElement
|
+--JavaPackage
in JavaPackage.cs
- public class JavaPackage
- extends CodeElement
A class generating a Java package declaration.
|
Field Summary |
override int |
Category
Returns a numeric category number for the code element. |
|
Constructor Summary |
JavaPackage( string name )
Creates a new Java package with the specified name. |
JavaPackage( JavaPackage basePackage, string name )
Creates a new Java package with the specified base package
and name. |
|
Method Summary |
override void |
Print( StreamWriter output, CodeStyle style, int indent )
Prints the code element to the specified output stream. |
DirectoryInfo |
ToDirectory( DirectoryInfo baseDir )
Returns the directory containing the package files. |
override string |
ToString()
Returns a string representation of this package. |
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
JavaPackage
public JavaPackage( string name );
-
Creates a new Java package with the specified name.
- Parameters:
name - the package name (including dots '.')
JavaPackage
public JavaPackage( JavaPackage basePackage, string name );
-
Creates a new Java package with the specified base package
and name.
- Parameters:
base - the base package
name - the package name (including dots '.')
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
ToDirectory
public DirectoryInfo ToDirectory( DirectoryInfo baseDir );
-
Returns the directory containing the package files.
- Parameters:
baseDir - the base output directory
- Returns:
- the package directory
ToString
public override string ToString();
-
Returns a string representation of this package.
- Returns:
- a string representation of this package