NullNode extends Node { public NullNode(SourceLocation sourceLocation) { super(sourceLocation); } NullNode(SourceLocation sourceLocation); @Override NodeType getType(); @Override R accept(NodeVisitor<R> visitor); @Override NullNode expectNullNode(String errorMessage); @Override Optional<NullNode> asNullNode(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test public void nullNodeIsEmpty() { NullNode node = NullNode.nullNode(); assertEquals(SourceLocation.none(), node.getSourceLocation()); }
@Test public void isNullNode() { NullNode node = NullNode.nullNode(); assertEquals(false, node.isObjectNode()); assertEquals(false, node.isArrayNode()); assertEquals(false, node.isStringNode()); assertEquals(false, node.isNumberNode()); assertEquals(false, node.isBooleanNode()); assertEquals(true, node.isNullNode()); }