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 Doubleprivate static final doubleprivate static final Stringprivate static final longFields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Objectabs(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectacos(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectacosh(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectasin(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectasinh(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectatan(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectatan2(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectatanh(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectcbrt(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectceil(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectclz32(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectcos(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectcosh(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectexp(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectexpm1(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectfloor(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectfround(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Return the name of the class.private static Objecthypot(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectimul(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) (package private) static voidinit(Scriptable scope, boolean sealed) private static Objectlog(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectlog10(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectlog1p(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectlog2(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectmax(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectmin(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectpow(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectrandom(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectround(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectsign(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectsin(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectsinh(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objectsqrt(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objecttan(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objecttanh(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) private static Objecttrunc(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: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
-
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
-