|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.percederberg.grammatica.code.CodeElement
The abstract base class for all code elements. The code element classes handles some source code construct and allows printing and comparing it to other constructs.
| Constructor Summary | |
CodeElement()
|
|
| Method Summary | |
abstract int |
category()
Returns a numeric category number for the code element. |
int |
compareTo(java.lang.Object obj)
Compares this object to another one. |
abstract void |
print(java.io.PrintWriter out,
CodeStyle style,
int indent)
Prints the code element to the specified output stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CodeElement()
| Method Detail |
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - the object to compare to
public abstract int category()
public abstract void print(java.io.PrintWriter out,
CodeStyle style,
int indent)
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 | ||||||||||