- All Known Implementing Classes:
public interface SourceFragmentPrinter
An object that knows how to print
Method SummaryModifier and TypeMethodDescription
()Called when printing using this context is going to finish
()called when pushed on the stack
intUpdate the internal state of this printer for this event but does not print anything.
onPushvoid onPush()called when pushed on the stack
void print(PrinterEvent event)
updateint update(PrinterEvent event)Update the internal state of this printer for this event but does not print anything. Returns the index of the fragment corresponding to this event.
onFinishedvoid onFinished()Called when printing using this context is going to finish
knowsHowToPrintboolean knowsHowToPrint(PrinterEvent event)
- true if this printer is able to handle this event
That is that we can safely call
print(PrinterEvent)after having called this one.