Class Comment

java.lang.Object
graphql.language.Comment
All Implemented Interfaces:
Serializable

@PublicApi @NullMarked public class Comment extends Object implements Serializable
A single-line comment. These are comments that start with a # in source documents.
See Also:
  • Field Details

    • content

      public final String content
    • sourceLocation

      public final @Nullable SourceLocation sourceLocation
  • Constructor Details

  • Method Details

    • getContent

      public String getContent()
    • getSourceLocation

      public @Nullable SourceLocation getSourceLocation()