MCPcopy Create free account
hub / github.com/mozilla/rhino / getDouble

Method getDouble

rhino/src/main/java/org/mozilla/javascript/Node.java:560–562  ·  view source on GitHub ↗

Can only be called when getType() == Token.NUMBER

()

Source from the content-addressed store, hash-verified

558
559 /** Can only be called when {@code getType() == Token.NUMBER} */
560 public final double getDouble() {
561 return ((NumberLiteral) this).getNumber();
562 }
563
564 public final void setDouble(double number) {
565 ((NumberLiteral) this).setNumber(number);

Callers 7

toStringMethod · 0.95
visitIfJumpEqOpMethod · 0.95
createUnaryMethod · 0.45
createBinaryMethod · 0.45
visitExpressionMethod · 0.45
generateExpressionMethod · 0.45

Calls 1

getNumberMethod · 0.45

Tested by

no test coverage detected