亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? nativemath.java

?? 主要的怎么樣結合java 和 javascript!
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* -*- Mode: java; tab-width: 4; indent-tabs-mode: 1; c-basic-offset: 4 -*- * * The contents of this file are subject to the Netscape Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.mozilla.org/NPL/ * * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is Netscape * Communications Corporation.  Portions created by Netscape are * Copyright (C) 1997-1999 Netscape Communications Corporation. All * Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the * provisions of the GPL are applicable instead of those above. * If you wish to allow use of your version of this file only * under the terms of the GPL and not to allow others to use your * version of this file under the NPL, indicate your decision by * deleting the provisions above and replace them with the notice * and other provisions required by the GPL.  If you do not delete * the provisions above, a recipient may use your version of this * file under either the NPL or the GPL. */package org.mozilla.javascript;/** * This class implements the Math native object. * See ECMA 15.8. * @author Norris Boyd */final class NativeMath extends IdScriptableObject{    static final long serialVersionUID = -8838847185801131569L;    private static final Object MATH_TAG = new Object();    static void init(Scriptable scope, boolean sealed)    {        NativeMath obj = new NativeMath();        obj.activatePrototypeMap(MAX_ID);        obj.setPrototype(getObjectPrototype(scope));        obj.setParentScope(scope);        if (sealed) { obj.sealObject(); }        ScriptableObject.defineProperty(scope, "Math", obj,                                        ScriptableObject.DONTENUM);    }    private NativeMath()    {    }    public String getClassName() { return "Math"; }    protected void initPrototypeId(int id)    {        if (id <= LAST_METHOD_ID) {            String name;            int arity;            switch (id) {              case Id_toSource: arity = 0; name = "toSource"; break;              case Id_abs:      arity = 1; name = "abs";      break;              case Id_acos:     arity = 1; name = "acos";     break;              case Id_asin:     arity = 1; name = "asin";     break;              case Id_atan:     arity = 1; name = "atan";     break;              case Id_atan2:    arity = 2; name = "atan2";    break;              case Id_ceil:     arity = 1; name = "ceil";     break;              case Id_cos:      arity = 1; name = "cos";      break;              case Id_exp:      arity = 1; name = "exp";      break;              case Id_floor:    arity = 1; name = "floor";    break;              case Id_log:      arity = 1; name = "log";      break;              case Id_max:      arity = 2; name = "max";      break;              case Id_min:      arity = 2; name = "min";      break;              case Id_pow:      arity = 2; name = "pow";      break;              case Id_random:   arity = 0; name = "random";   break;              case Id_round:    arity = 1; name = "round";    break;              case Id_sin:      arity = 1; name = "sin";      break;              case Id_sqrt:     arity = 1; name = "sqrt";     break;              case Id_tan:      arity = 1; name = "tan";      break;              default: throw new IllegalStateException(String.valueOf(id));            }            initPrototypeMethod(MATH_TAG, id, name, arity);        } else {            String name;            double x;            switch (id) {              case Id_E:       x = Math.E;             name = "E";       break;              case Id_PI:      x = Math.PI;            name = "PI";      break;              case Id_LN10:    x = 2.302585092994046;  name = "LN10";    break;              case Id_LN2:     x = 0.6931471805599453; name = "LN2";     break;              case Id_LOG2E:   x = 1.4426950408889634; name = "LOG2E";   break;              case Id_LOG10E:  x = 0.4342944819032518; name = "LOG10E";  break;              case Id_SQRT1_2: x = 0.7071067811865476; name = "SQRT1_2"; break;              case Id_SQRT2:   x = 1.4142135623730951; name = "SQRT2";   break;              default: throw new IllegalStateException(String.valueOf(id));            }            initPrototypeValue(id, name, ScriptRuntime.wrapNumber(x),                               DONTENUM | READONLY | PERMANENT);        }    }    public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,                             Scriptable thisObj, Object[] args)    {        if (!f.hasTag(MATH_TAG)) {            return super.execIdCall(f, cx, scope, thisObj, args);        }        double x;        int methodId = f.methodId();        switch (methodId) {            case Id_toSource:                return "Math";            case Id_abs:                x = ScriptRuntime.toNumber(args, 0);                // abs(-0.0) should be 0.0, but -0.0 < 0.0 == false                x = (x == 0.0) ? 0.0 : (x < 0.0) ? -x : x;                break;            case Id_acos:            case Id_asin:                x = ScriptRuntime.toNumber(args, 0);                if (x == x && -1.0 <= x && x <= 1.0) {                    x = (methodId == Id_acos) ? Math.acos(x) : Math.asin(x);                } else {                    x = Double.NaN;                }                break;            case Id_atan:                x = ScriptRuntime.toNumber(args, 0);                x = Math.atan(x);                break;            case Id_atan2:                x = ScriptRuntime.toNumber(args, 0);                x = Math.atan2(x, ScriptRuntime.toNumber(args, 1));                break;            case Id_ceil:                x = ScriptRuntime.toNumber(args, 0);                x = Math.ceil(x);                break;            case Id_cos:                x = ScriptRuntime.toNumber(args, 0);                x = (x == Double.POSITIVE_INFINITY                     || x == Double.NEGATIVE_INFINITY)                    ? Double.NaN : Math.cos(x);                break;            case Id_exp:                x = ScriptRuntime.toNumber(args, 0);                x = (x == Double.POSITIVE_INFINITY) ? x                    : (x == Double.NEGATIVE_INFINITY) ? 0.0                    : Math.exp(x);                break;            case Id_floor:                x = ScriptRuntime.toNumber(args, 0);                x = Math.floor(x);                break;            case Id_log:                x = ScriptRuntime.toNumber(args, 0);                // Java's log(<0) = -Infinity; we need NaN                x = (x < 0) ? Double.NaN : Math.log(x);                break;            case Id_max:            case Id_min:                x = (methodId == Id_max)                    ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;                for (int i = 0; i != args.length; ++i) {                    double d = ScriptRuntime.toNumber(args[i]);                    if (d != d) {                        x = d; // NaN                        break;                    }                    if (methodId == Id_max) {                        // if (x < d) x = d; does not work due to -0.0 >= +0.0                        x = Math.max(x, d);                    } else {                        x = Math.min(x, d);                    }                }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久久久久动漫 | 国产精品情趣视频| 91免费看片在线观看| 日韩av一区二区三区四区| 亚洲国产精品精华液ab| 91精品国产91热久久久做人人| 国产麻豆视频精品| 青草国产精品久久久久久| 最新不卡av在线| 久久久久久日产精品| 欧美一区二区视频在线观看2022 | 欧美日本在线视频| 成人激情动漫在线观看| 美洲天堂一区二卡三卡四卡视频| 亚洲欧美区自拍先锋| 久久久91精品国产一区二区精品| 在线成人免费视频| 日本大香伊一区二区三区| 国产黄人亚洲片| 麻豆91精品91久久久的内涵| 亚洲一级不卡视频| 亚洲蜜臀av乱码久久精品蜜桃| 久久久噜噜噜久久人人看| 日韩一区二区影院| 精品视频一区 二区 三区| 色婷婷精品久久二区二区蜜臂av | 国产精品资源在线看| 青草av.久久免费一区| 亚洲国产一区二区三区青草影视| 亚洲色图一区二区| 国产精品伦一区| 欧美国产欧美综合| 欧美激情一区在线| 中文字幕乱码亚洲精品一区| 2024国产精品| 欧美大肚乱孕交hd孕妇| 日韩三级高清在线| 日韩欧美成人一区| 精品久久人人做人人爱| 日韩欧美资源站| 精品奇米国产一区二区三区| 日韩免费一区二区| 久久久久久久综合色一本| 久久青草欧美一区二区三区| 精品国产乱码久久久久久牛牛| 欧美一区二区三区人| 欧美一区二区三区视频| 日韩精品中文字幕一区| 日韩精品一区二区三区swag | wwwwxxxxx欧美| 久久久国际精品| 亚洲国产精品传媒在线观看| 国产精品区一区二区三区| 中文字幕在线观看一区| 一区二区三区电影在线播| 亚洲资源在线观看| 舔着乳尖日韩一区| 久久91精品久久久久久秒播| 韩国欧美国产一区| 成人午夜激情影院| 色综合久久久久综合99| 欧美视频一区在线| 日韩一级二级三级精品视频| 久久综合久色欧美综合狠狠| 国产视频一区在线播放| 亚洲色大成网站www久久九九| 有码一区二区三区| 免费成人深夜小野草| 国产电影一区在线| 91免费观看国产| 欧美一区二区精品在线| 久久尤物电影视频在线观看| 中文字幕在线不卡国产视频| 一区二区高清免费观看影视大全 | 亚洲成a人片在线观看中文| 美国一区二区三区在线播放| 国产91露脸合集magnet| 欧美视频中文一区二区三区在线观看 | 韩国一区二区三区| av亚洲精华国产精华| 欧美酷刑日本凌虐凌虐| 久久先锋影音av| 一卡二卡欧美日韩| 韩国成人福利片在线播放| 91蝌蚪porny九色| 日韩三级高清在线| 一区二区三区四区在线播放| 久久丁香综合五月国产三级网站| 成人动漫一区二区三区| 91精品国产色综合久久不卡电影| 中文字幕av资源一区| 亚洲香肠在线观看| 成人深夜在线观看| 日韩一区二区视频| 亚洲精品视频自拍| 国产高清久久久| 91精品蜜臀在线一区尤物| 国产精品狼人久久影院观看方式| 天堂va蜜桃一区二区三区| 波多野结衣在线一区| 欧美一区二区三区小说| 综合av第一页| 国产成人精品一区二区三区四区 | 韩国精品主播一区二区在线观看| 99久久精品国产导航| 日韩一区二区在线观看| 夜夜精品浪潮av一区二区三区| 国产一区亚洲一区| 欧美一级黄色录像| 亚洲va中文字幕| 99国产精品国产精品毛片| 2021久久国产精品不只是精品| 亚洲五码中文字幕| 色婷婷香蕉在线一区二区| 国产精品久久毛片| 国产传媒欧美日韩成人| 日韩一区二区三区观看| 亚洲第四色夜色| 色女孩综合影院| 自拍av一区二区三区| 国产suv一区二区三区88区| 欧美成人精精品一区二区频| 亚洲一二三专区| 欧美系列日韩一区| 一区二区三区视频在线观看| 99热精品一区二区| 欧美国产一区二区在线观看| 国产久卡久卡久卡久卡视频精品| 日韩一卡二卡三卡四卡| 日本视频一区二区三区| 欧美一区二区三区视频在线观看| 香蕉成人啪国产精品视频综合网| 欧美这里有精品| 亚洲高清免费视频| 欧美色中文字幕| 亚洲一级二级三级| 欧美日本韩国一区| 午夜不卡在线视频| 91精品国产欧美一区二区成人| 免费观看日韩av| 精品国产乱码91久久久久久网站| 喷水一区二区三区| 久久天天做天天爱综合色| 国产麻豆精品在线观看| 国产精品剧情在线亚洲| 99久久精品一区二区| 一区二区在线免费| 欧美三电影在线| 日韩在线卡一卡二| 精品国产一二三区| 成人永久看片免费视频天堂| 国产精品久久久久久久久动漫| 91丨九色porny丨蝌蚪| 亚洲午夜激情网页| 91精品一区二区三区在线观看| 免费成人在线观看视频| 久久精品一区四区| 一本到三区不卡视频| 亚洲国产乱码最新视频 | 91精品国产综合久久久久久久久久| 午夜影院久久久| 日韩欧美一区二区久久婷婷| 精品一区二区三区免费观看| 久久久国产午夜精品| 91啪九色porn原创视频在线观看| 亚洲综合色视频| 26uuu久久天堂性欧美| 成人精品亚洲人成在线| 亚洲一区二区在线视频| 日韩午夜在线播放| 国产精品18久久久久久久网站| 亚洲丝袜美腿综合| 91精品国产综合久久精品图片| 国产一区二区中文字幕| 综合欧美一区二区三区| 欧美日韩精品免费| 国产精品99久久久久久有的能看 | 成人网在线免费视频| 一区二区三区欧美激情| 欧美一区二区免费视频| 丁香六月综合激情| 午夜视频在线观看一区二区三区| 26uuu精品一区二区三区四区在线| 94-欧美-setu| 美国十次综合导航| 亚洲欧美日韩精品久久久久| 欧美mv和日韩mv国产网站| 91在线国内视频| 久久国产精品99精品国产| 亚洲精品国产品国语在线app| 日韩免费成人网| 欧美影院一区二区| 国产传媒欧美日韩成人| 日韩在线播放一区二区| 最近日韩中文字幕| 国产色爱av资源综合区| 欧美伦理影视网| 97精品久久久午夜一区二区三区| 激情成人午夜视频| 日日摸夜夜添夜夜添精品视频 |