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

graphql.language.AbstractNode Maven / Gradle / Ivy

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


import java.util.Collections;
import java.util.List;

import static graphql.Assert.assertNotNull;

public abstract class AbstractNode implements Node {

    private SourceLocation sourceLocation;
    private List comments = Collections.emptyList();


    public void setSourceLocation(SourceLocation sourceLocation) {
        this.sourceLocation = sourceLocation;
    }

    @Override
    public SourceLocation getSourceLocation() {
        return sourceLocation;
    }

    public List getComments() {
        return comments;
    }

    public void setComments(List comments) {
        assertNotNull(comments, "You must provide non null comments");
        this.comments = comments;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy