graphql.language.Node Maven / Gradle / Ivy
The newest version!
package graphql.language;
import java.util.List;
public interface Node {
List getChildren();
SourceLocation getSourceLocation();
/**
* Nodes can have comments made on them, the following is one comment per line before a node.
*
* @return the list of comments or an empty list of there are none
*/
List getComments();
/**
* Compares just the content and not the children.
*
* @param node the other node to compare to
* @return isEqualTo
*/
boolean isEqualTo(Node node);
}