Package org.htmlunit.corejs.javascript
Class NativeMath
java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.NativeMath
- All Implemented Interfaces:
Serializable
,ConstProperties
,DebuggableObject
,Scriptable
,SymbolScriptable
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
FieldsModifier and TypeFieldDescriptionprivate static final Double
private static final double
private static final String
private static final long
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 -
Method Summary
Modifier and TypeMethodDescriptionprivate static Object
abs
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
acos
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
acosh
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
asin
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
asinh
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
atan
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
atan2
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
atanh
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
cbrt
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
ceil
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
clz32
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
cos
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
cosh
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
exp
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
expm1
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
floor
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
fround
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Return the name of the class.private static Object
hypot
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
imul
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) (package private) static void
init
(Scriptable scope, boolean sealed) private static Object
log
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
log10
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
log1p
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
log2
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
max
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
min
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
pow
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
random
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
round
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
sign
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
sin
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
sinh
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
sqrt
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
tan
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
tanh
(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Object
trunc
(Context cx, Scriptable scope, Scriptable thisObj, 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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
MATH_TAG
- See Also:
-
LOG2E
private static final double LOG2E- See Also:
-
Double32
-
-
Constructor Details
-
NativeMath
private NativeMath()
-
-
Method Details
-
init
-
getClassName
Description copied from class:ScriptableObject
Return the name of the class.This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
- Specified by:
getClassName
in interfaceScriptable
- Specified by:
getClassName
in classScriptableObject
-
abs
-
acos
-
acosh
-
asin
-
asinh
-
atan
-
atanh
-
atan2
-
cbrt
-
ceil
-
clz32
-
cos
-
cosh
-
exp
-
expm1
-
floor
-
fround
-
hypot
-
imul
-
log
-
log1p
-
log10
-
log2
-
max
-
min
-
pow
-
random
-
round
-
sign
-
sin
-
sinh
-
sqrt
-
tan
-
tanh
-
trunc
-