Package spoon.support.sniper.internal
Interface SourceFragmentPrinter
- All Known Implementing Classes:
- DefaultSourceFragmentPrinter,- SourceFragmentContextList,- SourceFragmentContextNormal
public interface SourceFragmentPrinter
An object that knows how to print 
PrinterEvent- 
Method SummaryModifier and TypeMethodDescriptionbooleanknowsHowToPrint(PrinterEvent event)voidCalled when printing using this context is going to finishvoidonPush()called when pushed on the stackvoidprint(PrinterEvent event)Called whenDefaultJavaPrettyPrinterstarts an operationintupdate(PrinterEvent event)Update the internal state of this printer for this event but does not print anything.
- 
Method Details- 
onPushvoid onPush()called when pushed on the stack
- 
printCalled whenDefaultJavaPrettyPrinterstarts an operation- Parameters:
- event- the- DefaultJavaPrettyPrinterevent
 
- 
updateUpdate 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
- 
knowsHowToPrint- Returns:
- true if this printer is able to handle this event
 That is that we can safely call print(PrinterEvent)after having called this one.
 
 
-