Package graphql.parser
Class CommentParser
- java.lang.Object
-
- graphql.parser.CommentParser
-
public class CommentParser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CommentParser(NodeToRuleCapturingParser.ParserContext parserContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
CommentParser
public CommentParser(NodeToRuleCapturingParser.ParserContext parserContext)
-
-
Method Detail
-
getBeginningOfBlockComment
public java.util.Optional<Comment> getBeginningOfBlockComment(Node<?> node, java.lang.String prefix)
-
getEndOfBlockComments
public java.util.List<Comment> getEndOfBlockComments(Node<?> node, java.lang.String blockSuffix)
-
getCommentsAfterDescription
public java.util.List<Comment> getCommentsAfterDescription(Node<?> node)
-
getCommentOnFirstLineOfDocument
public java.util.Optional<Comment> getCommentOnFirstLineOfDocument(Document node)
-
getCommentsAfterAllDefinitions
public java.util.List<Comment> getCommentsAfterAllDefinitions(Document node)
-
getCommentOnChannel
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)
-
-