Uses of Interface
spoon.reflect.code.CtComment
Packages that use 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
Subinterfaces of CtComment in spoon.reflect.codeModifier and TypeInterfaceDescriptioninterfaceThis code element defines a javadoc comment Example:Methods in spoon.reflect.code with type parameters of type CtCommentModifier and TypeMethodDescription<E extends CtComment>
ECtComment.setCommentType(CtComment.CommentType commentType)<E extends CtComment>
ECtComment.setContent(String content)Methods in spoon.reflect.code that return CtComment -
Uses of CtComment in spoon.reflect.declaration
Methods in spoon.reflect.declaration that return types with arguments of type CtCommentMethods in spoon.reflect.declaration with parameters of type CtCommentModifier 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 commentMethod parameters in spoon.reflect.declaration with type arguments of type CtCommentModifier and TypeMethodDescription<E extends CtElement>
ECtElement.setComments(List<CtComment> comments)Set the comment list -
Uses of CtComment in spoon.reflect.factory
Methods in spoon.reflect.factory that return CtCommentModifier 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
Method parameters in spoon.reflect.reference with type arguments of type CtCommentModifier and TypeMethodDescription<E extends CtElement>
ECtReference.setComments(List<CtComment> comments)comments are not possible for references -
Uses of CtComment in spoon.reflect.visitor
Methods in spoon.reflect.visitor that return types with arguments of type CtCommentModifier and TypeMethodDescriptionElementPrinterHelper.getComments(CtElement element, CommentOffset offset)Methods in spoon.reflect.visitor with parameters of type CtCommentModifier and TypeMethodDescriptionstatic StringCommentHelper.printComment(CtComment comment)returns a pretty-printed version of a comment, with prefix, suffix, and intermediate prefix for block and JavadocvoidCtAbstractVisitor.visitCtComment(CtComment comment)voidCtBiScannerDefault.visitCtComment(CtComment comment)voidCtInheritanceScanner.visitCtComment(CtComment e)voidCtScanner.visitCtComment(CtComment comment)voidCtVisitor.visitCtComment(CtComment comment)Visits a commentvoidDefaultJavaPrettyPrinter.visitCtComment(CtComment comment)DefaultTokenWriter.writeComment(CtComment comment)voidElementPrinterHelper.writeComment(CtComment comment)TokenWriter.writeComment(CtComment comment)writes a comment -
Uses of CtComment in spoon.support
Methods in spoon.support that return CtComment -
Uses of CtComment in spoon.support.reflect.code
Classes in spoon.support.reflect.code that implement CtCommentMethods in spoon.support.reflect.code with type parameters of type CtCommentModifier 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 tagsMethods in spoon.support.reflect.code that return CtComment -
Uses of CtComment in spoon.support.reflect.declaration
Methods in spoon.support.reflect.declaration that return types with arguments of type CtCommentMethods in spoon.support.reflect.declaration with parameters of type CtCommentModifier and TypeMethodDescription<E extends CtElement>
ECtElementImpl.addComment(CtComment comment)<E extends CtElement>
ECtElementImpl.removeComment(CtComment comment)Method parameters in spoon.support.reflect.declaration with type arguments of type CtCommentModifier and TypeMethodDescription<E extends CtElement>
ECtElementImpl.setComments(List<CtComment> comments) -
Uses of CtComment in spoon.support.reflect.reference
Method parameters in spoon.support.reflect.reference with type arguments of type CtCommentModifier and TypeMethodDescription<E extends CtElement>
ECtReferenceImpl.setComments(List<CtComment> comments) -
Uses of CtComment in spoon.support.sniper
Methods in spoon.support.sniper with parameters of type CtCommentModifier and TypeMethodDescriptionvoidSniperJavaPrettyPrinter.onTokenWriterWrite(TokenType tokenType, String token, CtComment comment, Runnable printAction)Called for each printed token -
Uses of CtComment in spoon.support.sniper.internal
Methods in spoon.support.sniper.internal with parameters of type CtCommentModifier and TypeMethodDescriptionvoidTokenWriterProxy.Listener.onTokenWriterWrite(TokenType tokenType, String token, CtComment comment, Runnable printAction)Called once for each call ofTokenWritermethodMutableTokenWriter.writeComment(CtComment comment)TokenWriterProxy.writeComment(CtComment comment)Constructors in spoon.support.sniper.internal with parameters of type CtCommentModifierConstructorDescriptionTokenPrinterEvent(TokenType type, String token, CtComment comment) -
Uses of CtComment in spoon.support.visitor.clone
Methods in spoon.support.visitor.clone with parameters of type CtCommentModifier and TypeMethodDescriptionvoidCloneBuilder.visitCtComment(CtComment e)voidCloneVisitor.visitCtComment(CtComment comment) -
Uses of CtComment in spoon.support.visitor.replace
Methods in spoon.support.visitor.replace with parameters of type CtComment