|
|||||||||||
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.csharp.CSharpUsing
A class generating a C# using declaration.
Constructor Summary | |
CSharpUsing(java.lang.String namespace)
Creates a new C# using declaration. |
Method Summary | |
int |
category()
Returns a numeric category number for the code element. |
int |
compareTo(java.lang.Object obj)
Compares this object to another one. |
boolean |
equals(java.lang.Object obj)
Returns true if this object is equal to another. |
void |
print(java.io.PrintWriter out,
CodeStyle style,
int indent)
Prints the code element to the specified output stream. |
java.lang.String |
toString()
Returns the namespace to use. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CSharpUsing(java.lang.String namespace)
namespace
- the namespace being usedMethod Detail |
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
compareTo
in class CodeElement
obj
- the object to compare to
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare to
public java.lang.String toString()
toString
in class java.lang.Object
public int category()
category
in class CodeElement
public 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 |