All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.language.Comment Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.language;

import graphql.PublicApi;

import java.io.Serializable;

/**
 * A single-line comment. These are comments that start with a {@code #} in source documents.
 */
@PublicApi
public class Comment implements Serializable {
    public final String content;
    public final SourceLocation sourceLocation;

    public Comment(String content, SourceLocation sourceLocation) {
        this.content = content;
        this.sourceLocation = sourceLocation;
    }

    public String getContent() {
        return content;
    }

    public SourceLocation getSourceLocation() {
        return sourceLocation;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy