Uses of Interface
spoon.reflect.code.CtComment
Package
Description
This package contains the meta-model part that models the executable code (methods and constructors' bodies, field initializers).
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package defines all the sub-factories for the Spoon meta-model.
This package defines the references to program elements for the meta-model.
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
This package contains some default implementations for commonly used processing tasks.
This package provides support for the sniper mode: only the transformed part of classes is rewritten to disk.
-
Uses of CtComment in spoon.reflect.code
Modifier and TypeInterfaceDescriptioninterface
This code element defines a javadoc comment Example:Modifier and TypeMethodDescription<E extends CtComment>
ECtComment.setCommentType(CtComment.CommentType commentType)
<E extends CtComment>
ECtComment.setContent(String content)
-
Uses of CtComment in spoon.reflect.declaration
Modifier and TypeMethodDescription<E extends CtElement>
ECtElement.addComment(CtComment comment)
Add a comment to the current elementelement.addComment(element.getFactory().Code().createComment("comment", CtComment.CommentType.INLINE)
<E extends CtElement>
ECtElement.removeComment(CtComment comment)
Remove a commentModifier and TypeMethodDescription<E extends CtElement>
ECtElement.setComments(List<CtComment> comments)
Set the comment list -
Uses of CtComment in spoon.reflect.factory
Modifier and TypeMethodDescriptionCodeFactory.createComment(String content, CtComment.CommentType type)
Creates a commentCoreFactory.createComment()
Creates a comment.Factory.createComment()
Factory.createComment(String content, CtComment.CommentType type)
FactoryImpl.createComment()
FactoryImpl.createComment(String content, CtComment.CommentType type)
CodeFactory.createInlineComment(String content)
Creates an inline commentFactory.createInlineComment(String content)
FactoryImpl.createInlineComment(String content)
-
Uses of CtComment in spoon.reflect.reference
Modifier and TypeMethodDescription<E extends CtElement>
ECtReference.setComments(List<CtComment> comments)
comments are not possible for references -
Uses of CtComment in spoon.reflect.visitor
Modifier and TypeMethodDescriptionElementPrinterHelper.getComments(CtElement element, CommentOffset offset)
Modifier and TypeMethodDescriptionstatic String
CommentHelper.printComment(CtComment comment)
returns a pretty-printed version of a comment, with prefix, suffix, and intermediate prefix for block and Javadocvoid
CtAbstractVisitor.visitCtComment(CtComment comment)
void
CtBiScannerDefault.visitCtComment(CtComment comment)
void
CtInheritanceScanner.visitCtComment(CtComment e)
void
CtScanner.visitCtComment(CtComment comment)
void
CtVisitor.visitCtComment(CtComment comment)
Visits a commentvoid
DefaultJavaPrettyPrinter.visitCtComment(CtComment comment)
DefaultTokenWriter.writeComment(CtComment comment)
void
ElementPrinterHelper.writeComment(CtComment comment)
TokenWriter.writeComment(CtComment comment)
writes a comment -
Uses of CtComment in spoon.support
-
Uses of CtComment in spoon.support.reflect.code
Modifier and TypeMethodDescription<E extends CtComment>
ECtCommentImpl._setRawContent(String content)
FOR ADVANCED USAGE ONLY Set the comment content, without cleaning the comment, if the cleaning behavior to get a canonical version does not work for you.<E extends CtComment>
ECtCommentImpl.setCommentType(CtComment.CommentType commentType)
<E extends CtComment>
ECtCommentImpl.setContent(String content)
<E extends CtComment>
ECtJavaDocImpl.setContent(String content)
Parses the content string to split in two: the description and the Javadoc tags -
Uses of CtComment in spoon.support.reflect.declaration
Modifier and TypeMethodDescription<E extends CtElement>
ECtElementImpl.addComment(CtComment comment)
<E extends CtElement>
ECtElementImpl.removeComment(CtComment comment)
Modifier and TypeMethodDescription<E extends CtElement>
ECtElementImpl.setComments(List<CtComment> comments)
-
Uses of CtComment in spoon.support.reflect.reference
Modifier and TypeMethodDescription<E extends CtElement>
ECtReferenceImpl.setComments(List<CtComment> comments)
-
Uses of CtComment in spoon.support.sniper
Modifier and TypeMethodDescriptionvoid
SniperJavaPrettyPrinter.onTokenWriterWrite(TokenType tokenType, String token, CtComment comment, Runnable printAction)
Called for each printed token -
Uses of CtComment in spoon.support.sniper.internal
Modifier and TypeMethodDescriptionvoid
TokenWriterProxy.Listener.onTokenWriterWrite(TokenType tokenType, String token, CtComment comment, Runnable printAction)
Called once for each call ofTokenWriter
methodMutableTokenWriter.writeComment(CtComment comment)
TokenWriterProxy.writeComment(CtComment comment)
ModifierConstructorDescriptionTokenPrinterEvent(TokenType type, String token, CtComment comment)
-
Uses of CtComment in spoon.support.visitor.clone
Modifier and TypeMethodDescriptionvoid
CloneBuilder.visitCtComment(CtComment e)
void
CloneVisitor.visitCtComment(CtComment comment)
-
Uses of CtComment in spoon.support.visitor.replace