org.mozilla.javascript

## 类 NativeJavaMethod

- java.lang.Object
- - org.mozilla.javascript.ScriptableObject
  - - org.mozilla.javascript.IdScriptableObject
    - - org.mozilla.javascript.BaseFunction
      - - org.mozilla.javascript.NativeJavaMethod

- 所有已实现的接口:
    java.io.Serializable, org.mozilla.javascript.Callable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Function, org.mozilla.javascript.IdFunctionCall, org.mozilla.javascript.Scriptable

      public class NativeJavaMethod
      extends org.mozilla.javascript.BaseFunction

  This class reflects Java methods into the JavaScript environment and handles overloading of methods.
  另请参阅:
    `NativeJavaArray`, `NativeJavaPackage`, `NativeJavaClass`, 序列化表格

- - ### 字段概要

    - ### 从类继承的字段 org.mozilla.javascript.ScriptableObject

      `CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST`

    - ### 从接口继承的字段 org.mozilla.javascript.Scriptable

      `NOT_FOUND`

  - ### 构造器概要

    构造器
    构造器和说明
    `NativeJavaMethod(java.lang.reflect.Method method, java.lang.String name)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `java.lang.Object` | `call(Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)`
    `java.lang.String` | `getFunctionName()`
    `java.lang.String` | `toString()`

    - ### 从类继承的方法 org.mozilla.javascript.BaseFunction

      `construct, createObject, execIdCall, getArity, getClassName, getLength, getTypeOf, hasInstance, setImmunePrototypeProperty`

    - ### 从类继承的方法 org.mozilla.javascript.IdScriptableObject

      `activatePrototypeMap, defineOwnProperty, delete, exportAsJSClass, get, getAttributes, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, put, setAttributes`

    - ### 从类继承的方法 org.mozilla.javascript.ScriptableObject

      `associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, has, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size`

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### 从接口继承的方法 org.mozilla.javascript.Scriptable

      `delete, delete, get, get, getDefaultValue, getIds, getParentScope, getPrototype, has, has, put, put, setParentScope, setPrototype`

- - ### 构造器详细资料

    - #### NativeJavaMethod

          public NativeJavaMethod(java.lang.reflect.Method method,
                                  java.lang.String name)

  - ### 方法详细资料

    - #### getFunctionName

          public java.lang.String getFunctionName()

      覆盖:
        `getFunctionName` 在类中 `org.mozilla.javascript.BaseFunction`

    - #### toString

          public java.lang.String toString()

      覆盖:
        `toString` 在类中 `java.lang.Object`

    - #### call

          public java.lang.Object call(Context cx,
                                       org.mozilla.javascript.Scriptable scope,
                                       org.mozilla.javascript.Scriptable thisObj,
                                       java.lang.Object[] args)

      指定者:
        `call` 在接口中 `org.mozilla.javascript.Callable`
      指定者:
        `call` 在接口中 `org.mozilla.javascript.Function`
      覆盖:
        `call` 在类中 `org.mozilla.javascript.BaseFunction`