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

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

本文整理了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

  1. } else if (left.type == Token.NUMBER) {
  2. if (right.type == Token.NUMBER) {
  3. left.setDouble(left.getDouble() + right.getDouble());
  4. return left;
  5. } else if (right.type == Token.STRING) {
  6. if (right.type == Token.NUMBER) {
  7. left.setDouble(ld - right.getDouble());
  8. return left;
  9. } else if (ld == 0.0) {
  10. if (right.type == Token.NUMBER) {
  11. left.setDouble(ld * right.getDouble());
  12. return left;
  13. } else if (ld == 1.0) {
  14. if (left.type == Token.NUMBER) {
  15. left.setDouble(left.getDouble() / rd);
  16. return left;
  17. } else if (rd == 1.0) {

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

  1. } else if (left.type == Token.NUMBER) {
  2. if (right.type == Token.NUMBER) {
  3. left.setDouble(left.getDouble() + right.getDouble());
  4. return left;
  5. } else if (right.type == Token.STRING) {
  6. if (right.type == Token.NUMBER) {
  7. left.setDouble(ld - right.getDouble());
  8. return left;
  9. } else if (ld == 0.0) {
  10. if (right.type == Token.NUMBER) {
  11. left.setDouble(ld * right.getDouble());
  12. return left;
  13. } else if (ld == 1.0) {
  14. if (left.type == Token.NUMBER) {
  15. left.setDouble(left.getDouble() / rd);
  16. return left;
  17. } else if (rd == 1.0) {

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

  1. } else if (left.type == Token.NUMBER) {
  2. if (right.type == Token.NUMBER) {
  3. left.setDouble(left.getDouble() + right.getDouble());
  4. return left;
  5. } else if (right.type == Token.STRING) {
  6. if (right.type == Token.NUMBER) {
  7. left.setDouble(ld - right.getDouble());
  8. return left;
  9. } else if (ld == 0.0) {
  10. if (right.type == Token.NUMBER) {
  11. left.setDouble(ld * right.getDouble());
  12. return left;
  13. } else if (ld == 1.0) {
  14. if (left.type == Token.NUMBER) {
  15. left.setDouble(left.getDouble() / rd);
  16. return left;
  17. } else if (rd == 1.0) {

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

  1. } else if (left.type == Token.NUMBER) {
  2. if (right.type == Token.NUMBER) {
  3. left.setDouble(left.getDouble() + right.getDouble());
  4. return left;
  5. } else if (right.type == Token.STRING) {
  6. if (right.type == Token.NUMBER) {
  7. left.setDouble(ld - right.getDouble());
  8. return left;
  9. } else if (ld == 0.0) {
  10. if (right.type == Token.NUMBER) {
  11. left.setDouble(ld * right.getDouble());
  12. return left;
  13. } else if (ld == 1.0) {
  14. if (left.type == Token.NUMBER) {
  15. left.setDouble(left.getDouble() / rd);
  16. return left;
  17. } else if (rd == 1.0) {

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

  1. } else if (left.type == Token.NUMBER) {
  2. if (right.type == Token.NUMBER) {
  3. left.setDouble(left.getDouble() + right.getDouble());
  4. return left;
  5. } else if (right.type == Token.STRING) {
  6. if (right.type == Token.NUMBER) {
  7. left.setDouble(ld - right.getDouble());
  8. return left;
  9. } else if (ld == 0.0) {
  10. if (right.type == Token.NUMBER) {
  11. left.setDouble(ld * right.getDouble());
  12. return left;
  13. } else if (ld == 1.0) {
  14. if (left.type == Token.NUMBER) {
  15. left.setDouble(left.getDouble() / rd);
  16. return left;
  17. } else if (rd == 1.0) {

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

  1. } else if (left.type == Token.NUMBER) {
  2. if (right.type == Token.NUMBER) {
  3. left.setDouble(left.getDouble() + right.getDouble());
  4. return left;
  5. } else if (right.type == Token.STRING) {
  6. if (right.type == Token.NUMBER) {
  7. left.setDouble(ld - right.getDouble());
  8. return left;
  9. } else if (ld == 0.0) {
  10. if (right.type == Token.NUMBER) {
  11. left.setDouble(ld * right.getDouble());
  12. return left;
  13. } else if (ld == 1.0) {
  14. if (left.type == Token.NUMBER) {
  15. left.setDouble(left.getDouble() / rd);
  16. return left;
  17. } else if (rd == 1.0) {

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

  1. if (childType == Token.NUMBER) {
  2. int value = ScriptRuntime.toInt32(child.getDouble());
  3. child.setDouble(~value);
  4. return child;
  5. case Token.NEG:
  6. if (childType == Token.NUMBER) {
  7. child.setDouble(-child.getDouble());
  8. return child;

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

  1. if (childType == Token.NUMBER) {
  2. int value = ScriptRuntime.toInt32(child.getDouble());
  3. child.setDouble(~value);
  4. return child;
  5. case Token.NEG:
  6. if (childType == Token.NUMBER) {
  7. child.setDouble(-child.getDouble());
  8. return child;

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

  1. if (childType == Token.NUMBER) {
  2. int value = ScriptRuntime.toInt32(child.getDouble());
  3. child.setDouble(~value);
  4. return child;
  5. case Token.NEG:
  6. if (childType == Token.NUMBER) {
  7. child.setDouble(-child.getDouble());
  8. return child;

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

  1. if (childType == Token.NUMBER) {
  2. int value = ScriptRuntime.toInt32(child.getDouble());
  3. child.setDouble(~value);
  4. return child;
  5. case Token.NEG:
  6. if (childType == Token.NUMBER) {
  7. child.setDouble(-child.getDouble());
  8. return child;

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

  1. if (childType == Token.NUMBER) {
  2. int value = ScriptRuntime.toInt32(child.getDouble());
  3. child.setDouble(~value);
  4. return child;
  5. case Token.NEG:
  6. if (childType == Token.NUMBER) {
  7. child.setDouble(-child.getDouble());
  8. return child;

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

  1. if (childType == Token.NUMBER) {
  2. int value = ScriptRuntime.toInt32(child.getDouble());
  3. child.setDouble(~value);
  4. return child;
  5. case Token.NEG:
  6. if (childType == Token.NUMBER) {
  7. child.setDouble(-child.getDouble());
  8. return child;

相关文章