|
org.openide.src 1.8.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ElementPrinter
Prints elements in a textual form. For example code generators use this.
Contains three kinds of public members:
ELEMENT_BEGIN
and ELEMENT_END
.
print(java.lang.String)
and println(java.lang.String)
.
markMethod(org.openide.src.MethodElement, int)
, etc.
notify about notable points inside the elements.
For example, if a printer implementation wants to print only
the header for a method, it may implement markMethod(org.openide.src.MethodElement, int)
to throw
ElementPrinterInterruptException
to stop the printing there
when it encounters HEADER_END
.
Field Summary | |
---|---|
static int |
BODY_BEGIN
Beginning of body. |
static int |
BODY_END
End of body. |
static int |
ELEMENT_BEGIN
Beginning of whole element. |
static int |
ELEMENT_END
End of whole element. |
static int |
HEADER_BEGIN
Beginning of header. |
static int |
HEADER_END
End of header. |
static int |
JAVADOC_BEGIN
Beginning of JavaDoc comment (if any). |
static int |
JAVADOC_END
End of JavaDoc comment (if any). |
Method Summary | |
---|---|
void |
markClass(ClassElement element,
int what)
Mark a notable point in a class element. |
void |
markConstructor(ConstructorElement element,
int what)
Mark a notable point in a constructor element. |
void |
markField(FieldElement element,
int what)
Mark a notable point in a field element. |
void |
markInitializer(InitializerElement element,
int what)
Mark a notable point in a initializer element. |
void |
markMethod(MethodElement element,
int what)
Mark a notable point in a method element. |
void |
print(String text)
Print some text. |
void |
println(String text)
Print a line of text with a newline. |
Field Detail |
---|
static final int ELEMENT_BEGIN
static final int ELEMENT_END
static final int JAVADOC_BEGIN
static final int JAVADOC_END
static final int HEADER_BEGIN
static final int HEADER_END
static final int BODY_BEGIN
static final int BODY_END
Method Detail |
---|
void print(String text) throws ElementPrinterInterruptException
text
- the text
ElementPrinterInterruptException
- - see class descriptionvoid println(String text) throws ElementPrinterInterruptException
text
- the text
ElementPrinterInterruptException
- - see class descriptionvoid markClass(ClassElement element, int what) throws ElementPrinterInterruptException
element
- the elementwhat
- which point
ElementPrinterInterruptException
- - see class descriptionvoid markInitializer(InitializerElement element, int what) throws ElementPrinterInterruptException
element
- the elementwhat
- which point
ElementPrinterInterruptException
- - see class descriptionvoid markField(FieldElement element, int what) throws ElementPrinterInterruptException
element
- the elementwhat
- which point
ElementPrinterInterruptException
- - see class descriptionvoid markConstructor(ConstructorElement element, int what) throws ElementPrinterInterruptException
element
- the elementwhat
- which point
ElementPrinterInterruptException
- - see class descriptionvoid markMethod(MethodElement element, int what) throws ElementPrinterInterruptException
element
- the elementwhat
- which point
ElementPrinterInterruptException
- - see class description
|
org.openide.src 1.8.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |