Class FieldAndMethods

All Implemented Interfaces:
Serializable, Callable, ConstProperties, Constructable, DebuggableObject, Function, IdFunctionCall, Scriptable, SymbolScriptable

class FieldAndMethods extends NativeJavaMethod
  • Field Details

  • Constructor Details

  • Method Details

    • getDefaultValue

      public Object getDefaultValue(Class<?> hint)
      Description copied from class: ScriptableObject
      Implements the [[DefaultValue]] internal method.

      Note that the toPrimitive conversion is a no-op for every type other than Object, for which [[DefaultValue]] is called. See ECMA 9.1.

      A hint of null means "no hint".

      Specified by:
      getDefaultValue in interface Scriptable
      Overrides:
      getDefaultValue in class ScriptableObject
      Parameters:
      hint - the type hint
      Returns:
      the default value for the object

      See ECMA 8.6.2.6.