public class CommentParser
extends java.lang.Object
Constructor and Description |
---|
CommentParser(NodeToRuleCapturingParser.ParserContext parserContext) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Comment> |
getBeginningOfBlockComment(Node<?> node,
java.lang.String prefix) |
protected java.util.List<Comment> |
getCommentOnChannel(java.util.List<org.antlr.v4.runtime.Token> refChannel,
java.util.function.Predicate<org.antlr.v4.runtime.Token> shouldIncludePredicate) |
java.util.Optional<Comment> |
getCommentOnFirstLineOfDocument(Document node) |
java.util.List<Comment> |
getCommentsAfterAllDefinitions(Document node) |
java.util.List<Comment> |
getCommentsAfterDescription(Node<?> node) |
java.util.List<Comment> |
getEndOfBlockComments(Node<?> node,
java.lang.String blockSuffix) |
java.util.List<Comment> |
getLeadingComments(Node<?> node) |
java.util.Optional<Comment> |
getTrailingComment(Node<?> node) |
public CommentParser(NodeToRuleCapturingParser.ParserContext parserContext)
public java.util.Optional<Comment> getBeginningOfBlockComment(Node<?> node, java.lang.String prefix)
public java.util.List<Comment> getEndOfBlockComments(Node<?> node, java.lang.String blockSuffix)
public java.util.List<Comment> getCommentsAfterDescription(Node<?> node)
public java.util.Optional<Comment> getCommentOnFirstLineOfDocument(Document node)
public java.util.List<Comment> getCommentsAfterAllDefinitions(Document node)
protected java.util.List<Comment> getCommentOnChannel(java.util.List<org.antlr.v4.runtime.Token> refChannel, java.util.function.Predicate<org.antlr.v4.runtime.Token> shouldIncludePredicate)