Package spoon.support.sniper.internal
package spoon.support.sniper.internal
-
InterfaceDescriptionRepresents an action of PrettyPrinterRepresents a part of source code.An object that knows how to print
PrinterEvent
Listens for each call ofTokenWriter
-
ClassDescriptionHelper which provides details about changes on provided `element`
SourceFragment
of List or Set ofElementSourceFragment
s 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 anCtElement
It is connected into a tree ofElementSourceFragment
s.Utility class for detecting the indentation style used in a compilation unit.TokenWriter
which simply delegates toDefaultTokenWriter
with 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 modifiedCtElement
by the way that origin formatting is kept as much as possible.Represents an action of Printer, which prints a tokenaSourceFragment
of some primitive String token, like separator, operator, whitespace, ...Wraps a `tokenWriter` by an implementation which intercepts allTokenWriter
writeXxx(String) calls and callsTokenWriterProxy.Listener.onTokenWriterWrite(TokenType, String, CtComment, Runnable)
whereRunnable
can be used to invoke same event on the wrappedTokenWriter
-
EnumDescriptionrepresents whether a
SourceFragment
has been modified, and should be reprinted as is or with the normal pretty-printerType ofTokenSourceFragment
token.