public class KScope
extends org.mozilla.javascript.TopLevel
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
构造器和说明 |
---|
KScope() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
__get(java.lang.Object key) |
java.lang.Object |
__getJSObject(java.lang.Object key)
获取原始js对象
|
java.lang.Object[] |
__vars() |
java.lang.String |
dateToString(org.mozilla.javascript.Scriptable scriptable,
java.lang.String pattern) |
static void |
dump(Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
org.mozilla.javascript.BaseFunction[] |
functions() |
java.lang.String |
getClassName()
Return the name of the class.
|
static void |
importClass(Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
已过时。
|
static int |
importModule(Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
已过时。
|
java.util.Date |
now() |
static void |
print(Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
变参数必须用这种格式,且为静态方法。
|
static void |
println(Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
static void |
require(Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj) |
static java.math.BigDecimal |
toBigDecimal(java.lang.Object value) |
static java.lang.Boolean |
toBoolean(java.lang.Object value) |
java.util.Date |
toDate(java.lang.String s) |
static double |
toDouble(java.lang.Object value) |
static float |
toFloat(java.lang.Object value) |
static int |
toInt(java.lang.Object value) |
static long |
toLong(java.lang.Object value) |
static java.lang.String |
toString(java.lang.Object value) |
java.lang.String |
version() |
cacheBuiltins, getBuiltinCtor, getBuiltinCtor, getBuiltinPrototype, getBuiltinPrototype
activatePrototypeMap, defineOwnProperty, delete, execIdCall, exportAsJSClass, get, getAttributes, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, put, setAttributes
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, 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
@JSFunction public java.lang.String getClassName()
ScriptableObject
getClassName
在接口中 org.mozilla.javascript.Scriptable
getClassName
在类中 org.mozilla.javascript.TopLevel
@JSFunction public org.mozilla.javascript.BaseFunction[] functions()
@JSFunction public java.lang.String version()
@JSFunction public java.util.Date now()
@JSFunction public static int toInt(java.lang.Object value)
@JSFunction public static long toLong(java.lang.Object value)
@JSFunction public static float toFloat(java.lang.Object value)
@JSFunction public static double toDouble(java.lang.Object value)
@JSFunction public java.util.Date toDate(java.lang.String s) throws java.text.ParseException
java.text.ParseException
@JSFunction public java.lang.String dateToString(org.mozilla.javascript.Scriptable scriptable, java.lang.String pattern)
@JSFunction public static java.math.BigDecimal toBigDecimal(java.lang.Object value)
@JSFunction public static java.lang.String toString(java.lang.Object value)
@JSFunction public static java.lang.Boolean toBoolean(java.lang.Object value)
@JSFunction public static void print(Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)
@JSFunction public static void println(Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)
@JSFunction public static void dump(Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)
@JSFunction public java.lang.Object[] __vars()
@JSFunction public java.lang.Object __getJSObject(java.lang.Object key)
@JSFunction public java.lang.Object __get(java.lang.Object key)
@Deprecated @JSFunction public static int importModule(Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)
@JSFunction public static void require(Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)
@Deprecated @JSFunction public static void importClass(Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, org.mozilla.javascript.Function funObj)