public class KNamespace extends KObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST| 构造器和说明 |
|---|
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() |
__release, getDefaultValueactivatePrototypeMap, defineOwnProperty, delete, execIdCall, exportAsJSClass, get, getAttributes, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, put, setAttributesassociateValue, 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__getUndefinedPropertypublic KNamespace(java.lang.String namespace,
org.mozilla.javascript.Scriptable scope)
@SafeVarargs
public static void defineNamespace(org.mozilla.javascript.Scriptable scope,
java.lang.String namespace,
java.lang.Class<?>... classes)
namespace - 命名空间:xx.xx.xxcls - scope - public java.lang.String getNamespace()
public static KNamespace defineNamespace(org.mozilla.javascript.Scriptable scope, java.lang.String namespace)
public java.lang.String getClassName()
ScriptableObjectgetClassName 在接口中 org.mozilla.javascript.ScriptablegetClassName 在类中 KObject