kd.bos.script.jsengine.def

## 类 KNamespace

- java.lang.Object
- - org.mozilla.javascript.ScriptableObject
  - - org.mozilla.javascript.IdScriptableObject
    - - kd.bos.script.jsengine.def.KObject
      - - kd.bos.script.jsengine.def.KNamespace

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

      public class KNamespace
      extends KObject

  另请参阅:
    序列化表格

- - ### 字段概要

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

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

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

      `NOT_FOUND`

  - ### 构造器概要

    构造器
    构造器和说明
    `KNamespace(java.lang.String namespace, org.mozilla.javascript.Scriptable scope)`

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static KNamespace` | `defineNamespace(org.mozilla.javascript.Scriptable scope, java.lang.String namespace)`
    `static void` | `defineNamespace(org.mozilla.javascript.Scriptable scope, java.lang.String namespace, java.lang.Class<?>... classes)`
    `java.lang.String` | `getClassName()` Return the name of the class.
    `java.lang.String` | `getNamespace()`
    `java.lang.String` | `toString()`

    - ### 从类继承的方法 kd.bos.script.jsengine.def.KObject

      `__release, getDefaultValue`

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

      `activatePrototypeMap, defineOwnProperty, delete, execIdCall, 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, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, 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`

    - ### 从接口继承的方法 kd.bos.script.ScriptObject

      `__getUndefinedProperty`

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

    - #### KNamespace

          public KNamespace(java.lang.String namespace,
                            org.mozilla.javascript.Scriptable scope)

  - ### 方法详细资料

    - #### defineNamespace

          @SafeVarargs
          public static void defineNamespace(org.mozilla.javascript.Scriptable scope,
                                                           java.lang.String namespace,
                                                           java.lang.Class<?>... classes)

      参数:
        `namespace` - 命名空间：xx.xx.xx
        `cls` -
        `scope` -

    - #### getNamespace

          public java.lang.String getNamespace()

    - #### defineNamespace

          public static KNamespace defineNamespace(org.mozilla.javascript.Scriptable scope,
                                                   java.lang.String namespace)

    - #### toString

          public java.lang.String toString()

      覆盖:
        `toString` 在类中 `KObject`

    - #### getClassName

          public java.lang.String getClassName()

      从类复制的说明: `ScriptableObject`
      Return the name of the class. This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
      指定者:
        `getClassName` 在接口中 `org.mozilla.javascript.Scriptable`
      覆盖:
        `getClassName` 在类中 `KObject`