Package org.htmlunit.corejs.javascript
Class NativeMath
- java.lang.Object
-
- org.htmlunit.corejs.javascript.ScriptableObject
-
- org.htmlunit.corejs.javascript.NativeMath
-
- All Implemented Interfaces:
java.io.Serializable,ConstProperties,DebuggableObject,Scriptable,SymbolScriptable
final class NativeMath extends ScriptableObject
This class implements the Math native object. See ECMA 15.8.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
ScriptableObject.KeyComparator
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.DoubleDouble32private static doubleLOG2Eprivate static java.lang.StringMATH_TAGprivate static longserialVersionUID-
Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
-
Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNativeMath()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.Objectabs(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectacos(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectacosh(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectasin(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectasinh(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectatan(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectatan2(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectatanh(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectcbrt(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectceil(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectclz32(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectcos(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectcosh(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectexp(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectexpm1(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectfloor(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectfround(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)java.lang.StringgetClassName()Return the name of the class.private static java.lang.Objecthypot(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectimul(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)(package private) static voidinit(Scriptable scope, boolean sealed)private static java.lang.Objectlog(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectlog10(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectlog1p(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectlog2(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectmax(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectmin(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectpow(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectrandom(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectround(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectsign(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectsin(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectsinh(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objectsqrt(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objecttan(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objecttanh(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)private static java.lang.Objecttrunc(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)-
Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
addLazilyInitializedValue, applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildClassCtor, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, checkValidAttributes, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getBase, getBase, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putImpl, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
MATH_TAG
private static final java.lang.String MATH_TAG
- See Also:
- Constant Field Values
-
LOG2E
private static final double LOG2E
- See Also:
- Constant Field Values
-
Double32
private static final java.lang.Double Double32
-
-
Method Detail
-
init
static void init(Scriptable scope, boolean sealed)
-
getClassName
public java.lang.String getClassName()
Description copied from class:ScriptableObjectReturn the name of the class.This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
- Specified by:
getClassNamein interfaceScriptable- Specified by:
getClassNamein classScriptableObject
-
abs
private static java.lang.Object abs(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
acos
private static java.lang.Object acos(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
acosh
private static java.lang.Object acosh(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
asin
private static java.lang.Object asin(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
asinh
private static java.lang.Object asinh(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
atan
private static java.lang.Object atan(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
atanh
private static java.lang.Object atanh(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
atan2
private static java.lang.Object atan2(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
cbrt
private static java.lang.Object cbrt(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
ceil
private static java.lang.Object ceil(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
clz32
private static java.lang.Object clz32(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
cos
private static java.lang.Object cos(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
cosh
private static java.lang.Object cosh(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
exp
private static java.lang.Object exp(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
expm1
private static java.lang.Object expm1(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
floor
private static java.lang.Object floor(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
fround
private static java.lang.Object fround(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
hypot
private static java.lang.Object hypot(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
imul
private static java.lang.Object imul(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
log
private static java.lang.Object log(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
log1p
private static java.lang.Object log1p(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
log10
private static java.lang.Object log10(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
log2
private static java.lang.Object log2(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
max
private static java.lang.Object max(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
min
private static java.lang.Object min(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
pow
private static java.lang.Object pow(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
random
private static java.lang.Object random(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
round
private static java.lang.Object round(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
sign
private static java.lang.Object sign(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
sin
private static java.lang.Object sin(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
sinh
private static java.lang.Object sinh(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
sqrt
private static java.lang.Object sqrt(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
tan
private static java.lang.Object tan(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
tanh
private static java.lang.Object tanh(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
trunc
private static java.lang.Object trunc(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
-