@Test public void fromShort() { short number = 1; NumberNode node = Node.from(number); assertEquals(Short.valueOf(number), node.getValue()); }
public Number getValue() { return value; }
NumberNode extends Node { public Number getValue() { return value; } }
NumberNode extends Node { public Number getValue() { return value; } NumberNode(Number value, SourceLocation sourceLocation); }
NumberNode extends Node { public Number getValue() { return value; } NumberNode(Number value, SourceLocation sourceLocation); Number getValue(); boolean isNaturalNumber(); boolean isFloatingPointNumber(); @Override NodeType getType(); @Override R accept(NodeVisitor<R> visitor); @Override NumberNode expectNumberNode(String errorMessage); @Override Optional<NumberNode> asNumberNode(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
NumberNode extends Node { public Number getValue() { return value; } NumberNode(Number value, SourceLocation sourceLocation); Number getValue(); boolean isNaturalNumber(); boolean isFloatingPointNumber(); @Override NodeType getType(); @Override R accept(NodeVisitor<R> visitor); @Override NumberNode expectNumberNode(String errorMessage); @Override Optional<NumberNode> asNumberNode(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }