Uses of Interface
spoon.reflect.visitor.TokenWriter
Packages that use TokenWriter
Package
Description
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
-
Uses of TokenWriter in spoon.reflect.visitor
Classes in spoon.reflect.visitor that implement TokenWriterModifier and TypeClassDescriptionclass
Implementation ofTokenWriter
, which writes all tokens toPrinterHelper
Methods in spoon.reflect.visitor that return TokenWriterModifier and TypeMethodDescriptionTokenWriter.decTab()
decrements indentationprotected TokenWriter
DefaultJavaPrettyPrinter.getPrinterTokenWriter()
TokenWriter.incTab()
increments indentationTokenWriter.writeCodeSnippet(String token)
writes a code snippet - represents arbitrary code ofCtCodeSnippetExpression
orCtCodeSnippetStatement
TokenWriter.writeComment(CtComment comment)
writes a commentTokenWriter.writeIdentifier(String token)
writes a java identifier.TokenWriter.writeKeyword(String token)
writes a keyword abstract continue for new switch assert default goto package synchronized boolean do if private this break double implements protected throw byte else import public throws case enum instanceof return transient catch extends int short try char final interface static void class finally long strictfp volatile const float native super whileTokenWriter.writeLiteral(String token)
writes literal.TokenWriter.writeln()
writes new line (EOL)TokenWriter.writeOperator(String token)
Writes one operator.ElementPrinterHelper.writeQualifiedName(String qualifiedName)
splits qualified name to primitive tokens and sends them to TokenWriter individuallyTokenWriter.writeSeparator(String token)
Writes one separator.DefaultTokenWriter.writeSpace()
TokenWriter.writeSpace()
Writes a single space.Methods in spoon.reflect.visitor with parameters of type TokenWriterModifier and TypeMethodDescriptionDefaultJavaPrettyPrinter.setPrinterTokenWriter(TokenWriter tokenWriter)
SetTokenWriter
, which has to be used to print tokensConstructors in spoon.reflect.visitor with parameters of type TokenWriterModifierConstructorDescriptionElementPrinterHelper(TokenWriter printerTokenWriter, DefaultJavaPrettyPrinter prettyPrinter, Environment env)
ListPrinter(TokenWriter printerHelper, boolean startPrefixSpace, String start, boolean startSuffixSpace, boolean nextPrefixSpace, String next, boolean nextSuffixSpace, boolean endPrefixSpace, String end)
-
Uses of TokenWriter in spoon.support.sniper.internal
Classes in spoon.support.sniper.internal that implement TokenWriterModifier and TypeClassDescriptionclass
TokenWriter
which simply delegates toDefaultTokenWriter
with the decorator pattern, untilMutableTokenWriter.setMuted(boolean)
is called with true Then all tokens are ignored.class
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
Methods in spoon.support.sniper.internal that return TokenWriterModifier and TypeMethodDescriptionMutableTokenWriter.decTab()
TokenWriterProxy.decTab()
MutableTokenWriter.incTab()
TokenWriterProxy.incTab()
writes the piece of text if not mutedMutableTokenWriter.writeCodeSnippet(String token)
TokenWriterProxy.writeCodeSnippet(String token)
MutableTokenWriter.writeComment(CtComment comment)
TokenWriterProxy.writeComment(CtComment comment)
MutableTokenWriter.writeIdentifier(String token)
TokenWriterProxy.writeIdentifier(String token)
MutableTokenWriter.writeKeyword(String token)
TokenWriterProxy.writeKeyword(String token)
MutableTokenWriter.writeLiteral(String token)
TokenWriterProxy.writeLiteral(String token)
MutableTokenWriter.writeln()
TokenWriterProxy.writeln()
MutableTokenWriter.writeOperator(String token)
TokenWriterProxy.writeOperator(String token)
MutableTokenWriter.writeSeparator(String token)
TokenWriterProxy.writeSeparator(String token)
MutableTokenWriter.writeSpace()
TokenWriterProxy.writeSpace()
Constructors in spoon.support.sniper.internal with parameters of type TokenWriterModifierConstructorDescriptionTokenWriterProxy(TokenWriterProxy.Listener listener, TokenWriter delegate)