org.mozilla.javascript.Node.setDouble()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 JavaScript  
字(4.5k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中org.mozilla.javascript.Node.setDouble()方法的一些代码示例,展示了Node.setDouble()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.setDouble()方法的具体详情如下:
包路径:org.mozilla.javascript.Node
类名称:Node
方法名:setDouble

Node.setDouble介绍

暂无

代码示例

代码示例来源:origin: ro.isdc.wro4j/rhino

} else if (left.type == Token.NUMBER) {
  if (right.type == Token.NUMBER) {
    left.setDouble(left.getDouble() + right.getDouble());
    return left;
  } else if (right.type == Token.STRING) {
  if (right.type == Token.NUMBER) {
    left.setDouble(ld - right.getDouble());
    return left;
  } else if (ld == 0.0) {
  if (right.type == Token.NUMBER) {
    left.setDouble(ld * right.getDouble());
    return left;
  } else if (ld == 1.0) {
  if (left.type == Token.NUMBER) {
    left.setDouble(left.getDouble() / rd);
    return left;
  } else if (rd == 1.0) {

代码示例来源:origin: com.sun.phobos/phobos-rhino

} else if (left.type == Token.NUMBER) {
  if (right.type == Token.NUMBER) {
    left.setDouble(left.getDouble() + right.getDouble());
    return left;
  } else if (right.type == Token.STRING) {
  if (right.type == Token.NUMBER) {
    left.setDouble(ld - right.getDouble());
    return left;
  } else if (ld == 0.0) {
  if (right.type == Token.NUMBER) {
    left.setDouble(ld * right.getDouble());
    return left;
  } else if (ld == 1.0) {
  if (left.type == Token.NUMBER) {
    left.setDouble(left.getDouble() / rd);
    return left;
  } else if (rd == 1.0) {

代码示例来源:origin: io.apigee/rhino

} else if (left.type == Token.NUMBER) {
  if (right.type == Token.NUMBER) {
    left.setDouble(left.getDouble() + right.getDouble());
    return left;
  } else if (right.type == Token.STRING) {
  if (right.type == Token.NUMBER) {
    left.setDouble(ld - right.getDouble());
    return left;
  } else if (ld == 0.0) {
  if (right.type == Token.NUMBER) {
    left.setDouble(ld * right.getDouble());
    return left;
  } else if (ld == 1.0) {
  if (left.type == Token.NUMBER) {
    left.setDouble(left.getDouble() / rd);
    return left;
  } else if (rd == 1.0) {

代码示例来源:origin: rhino/js

} else if (left.type == Token.NUMBER) {
  if (right.type == Token.NUMBER) {
    left.setDouble(left.getDouble() + right.getDouble());
    return left;
  } else if (right.type == Token.STRING) {
  if (right.type == Token.NUMBER) {
    left.setDouble(ld - right.getDouble());
    return left;
  } else if (ld == 0.0) {
  if (right.type == Token.NUMBER) {
    left.setDouble(ld * right.getDouble());
    return left;
  } else if (ld == 1.0) {
  if (left.type == Token.NUMBER) {
    left.setDouble(left.getDouble() / rd);
    return left;
  } else if (rd == 1.0) {

代码示例来源:origin: geogebra/geogebra

} else if (left.type == Token.NUMBER) {
  if (right.type == Token.NUMBER) {
    left.setDouble(left.getDouble() + right.getDouble());
    return left;
  } else if (right.type == Token.STRING) {
  if (right.type == Token.NUMBER) {
    left.setDouble(ld - right.getDouble());
    return left;
  } else if (ld == 0.0) {
  if (right.type == Token.NUMBER) {
    left.setDouble(ld * right.getDouble());
    return left;
  } else if (ld == 1.0) {
  if (left.type == Token.NUMBER) {
    left.setDouble(left.getDouble() / rd);
    return left;
  } else if (rd == 1.0) {

代码示例来源:origin: com.github.tntim96/rhino

} else if (left.type == Token.NUMBER) {
  if (right.type == Token.NUMBER) {
    left.setDouble(left.getDouble() + right.getDouble());
    return left;
  } else if (right.type == Token.STRING) {
  if (right.type == Token.NUMBER) {
    left.setDouble(ld - right.getDouble());
    return left;
  } else if (ld == 0.0) {
  if (right.type == Token.NUMBER) {
    left.setDouble(ld * right.getDouble());
    return left;
  } else if (ld == 1.0) {
  if (left.type == Token.NUMBER) {
    left.setDouble(left.getDouble() / rd);
    return left;
  } else if (rd == 1.0) {

代码示例来源:origin: rhino/js

if (childType == Token.NUMBER) {
   int value = ScriptRuntime.toInt32(child.getDouble());
   child.setDouble(~value);
   return child;
case Token.NEG:
 if (childType == Token.NUMBER) {
   child.setDouble(-child.getDouble());
   return child;

代码示例来源:origin: geogebra/geogebra

if (childType == Token.NUMBER) {
   int value = ScriptRuntime.toInt32(child.getDouble());
   child.setDouble(~value);
   return child;
case Token.NEG:
 if (childType == Token.NUMBER) {
   child.setDouble(-child.getDouble());
   return child;

代码示例来源:origin: ro.isdc.wro4j/rhino

if (childType == Token.NUMBER) {
   int value = ScriptRuntime.toInt32(child.getDouble());
   child.setDouble(~value);
   return child;
case Token.NEG:
 if (childType == Token.NUMBER) {
   child.setDouble(-child.getDouble());
   return child;

代码示例来源:origin: com.sun.phobos/phobos-rhino

if (childType == Token.NUMBER) {
   int value = ScriptRuntime.toInt32(child.getDouble());
   child.setDouble(~value);
   return child;
case Token.NEG:
 if (childType == Token.NUMBER) {
   child.setDouble(-child.getDouble());
   return child;

代码示例来源:origin: io.apigee/rhino

if (childType == Token.NUMBER) {
   int value = ScriptRuntime.toInt32(child.getDouble());
   child.setDouble(~value);
   return child;
case Token.NEG:
 if (childType == Token.NUMBER) {
   child.setDouble(-child.getDouble());
   return child;

代码示例来源:origin: com.github.tntim96/rhino

if (childType == Token.NUMBER) {
   int value = ScriptRuntime.toInt32(child.getDouble());
   child.setDouble(~value);
   return child;
case Token.NEG:
 if (childType == Token.NUMBER) {
   child.setDouble(-child.getDouble());
   return child;

相关文章

微信公众号