Package graphql.language
Class Comment
- java.lang.Object
-
- graphql.language.Comment
-
- All Implemented Interfaces:
java.io.Serializable
@PublicApi public class Comment extends java.lang.Object implements java.io.Serializable
A single-line comment. These are comments that start with a#
in source documents.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
content
SourceLocation
sourceLocation
-
Constructor Summary
Constructors Constructor Description Comment(java.lang.String content, SourceLocation sourceLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContent()
SourceLocation
getSourceLocation()
-
-
-
Field Detail
-
content
public final java.lang.String content
-
sourceLocation
public final SourceLocation sourceLocation
-
-
Constructor Detail
-
Comment
public Comment(java.lang.String content, SourceLocation sourceLocation)
-
-
Method Detail
-
getContent
public java.lang.String getContent()
-
getSourceLocation
public SourceLocation getSourceLocation()
-
-