Package spoon.support.sniper.internal
package spoon.support.sniper.internal
-
Interface SummaryInterfaceDescriptionRepresents an action of PrettyPrinterRepresents a part of source code.An object that knows how to print
PrinterEventListens for each call ofTokenWriter -
Class SummaryClassDescriptionHelper which provides details about changes on provided `element`
SourceFragmentof List or Set ofElementSourceFragments which belong to collection role.A default dumb implementation ofSourceFragmentPrinter, which only prints the given PrinterEvent.Represents an action of Printer, which prints whole elementRepresents a part of source code of anCtElementIt is connected into a tree ofElementSourceFragments.Utility class for detecting the indentation style used in a compilation unit.TokenWriterwhich simply delegates toDefaultTokenWriterwith the decorator pattern, untilMutableTokenWriter.setMuted(boolean)is called with true Then all tokens are ignored.Handles printing of changes of the ordered list of elements.Knows how to print modifiedCtElementby the way that origin formatting is kept as much as possible.Represents an action of Printer, which prints a tokenaSourceFragmentof some primitive String token, like separator, operator, whitespace, ...Wraps a `tokenWriter` by an implementation which intercepts allTokenWriterwriteXxx(String) calls and callsTokenWriterProxy.Listener.onTokenWriterWrite(TokenType, String, CtComment, Runnable)whereRunnablecan be used to invoke same event on the wrappedTokenWriter -
Enum SummaryEnumDescriptionrepresents whether a
SourceFragmenthas been modified, and should be reprinted as is or with the normal pretty-printerType ofTokenSourceFragmenttoken.