BooleanNode extends Node { @Override public NodeType getType() { return NodeType.BOOLEAN; } BooleanNode(boolean value, SourceLocation sourceLocation); boolean getValue(); @Override NodeType getType(); @Override R accept(NodeVisitor<R> visitor); @Override BooleanNode expectBooleanNode(String errorMessage); @Override Optional<BooleanNode> asBooleanNode(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test public void getType() { NodeType type = Node.from(true).getType(); assertEquals(NodeType.BOOLEAN, type); assertEquals("boolean", type.toString()); }