|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.percederberg.grammatica.code.CodeElement | +--net.percederberg.grammatica.code.CodeElementContainer | +--net.percederberg.grammatica.code.csharp.CSharpNamespace
A class generating a C# namespace declaration.
Constructor Summary | |
CSharpNamespace(java.lang.String name)
Creates a new namespace. |
Method Summary | |
void |
addClass(CSharpClass c)
Adds a class declaration to the namespace. |
void |
addEnumeration(CSharpEnumeration e)
Adds an enumeration to the namespace. |
int |
category()
Returns a numeric category number for the code element. |
void |
print(java.io.PrintWriter out,
CodeStyle style,
int indent)
Prints the code element to the specified output stream. |
Methods inherited from class net.percederberg.grammatica.code.CodeElementContainer |
addElement, printContents, printSeparator |
Methods inherited from class net.percederberg.grammatica.code.CodeElement |
compareTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CSharpNamespace(java.lang.String name)
name
- the fully qualified namespace nameMethod Detail |
public int category()
category
in class CodeElement
public void addClass(CSharpClass c)
c
- the class declaration to addpublic void addEnumeration(CSharpEnumeration e)
e
- the enumeration to addpublic void print(java.io.PrintWriter out, CodeStyle style, int indent)
print
in class CodeElement
out
- the output streamstyle
- the code style to useindent
- the indentation level
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |