public class RhinoJsObject extends org.mozilla.javascript.ScriptableObject implements IJsObject<org.mozilla.javascript.ScriptableObject>
| Modifier and Type | Field and Description |
|---|---|
protected static RhinoJsObject |
rhinoJsObject |
| Constructor and Description |
|---|
RhinoJsObject(IJsObject parent) |
RhinoJsObject(String className) |
| Modifier and Type | Method and Description |
|---|---|
void |
defineConstantProperty(String key,
Object value) |
void |
defineProperty(String key,
Object value) |
Object |
evaluateScript(ScriptString script) |
Object |
evaluateScript(String script) |
String |
getClassName() |
Object |
getDefaultValue(Class aClass) |
Object |
getOwnProperty(String key) |
Object |
getProperty(String key) |
String |
getStringProperty(String key) |
boolean |
isUndefined(Object obj) |
static Object |
unwrap(Object value) |
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, sizeprotected static final RhinoJsObject rhinoJsObject
public RhinoJsObject(String className)
public RhinoJsObject(IJsObject parent)
public String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic void defineProperty(String key, Object value)
defineProperty in interface IJsObject<org.mozilla.javascript.ScriptableObject>public void defineConstantProperty(String key, Object value)
defineConstantProperty in interface IJsObject<org.mozilla.javascript.ScriptableObject>public Object getOwnProperty(String key)
getOwnProperty in interface IJsObject<org.mozilla.javascript.ScriptableObject>public Object getProperty(String key)
getProperty in interface IJsObject<org.mozilla.javascript.ScriptableObject>public Object evaluateScript(ScriptString script) throws Exception
Exceptionpublic Object evaluateScript(String script) throws Exception
evaluateScript in interface IJsObject<org.mozilla.javascript.ScriptableObject>Exceptionpublic boolean isUndefined(Object obj)
isUndefined in interface IJsObject<org.mozilla.javascript.ScriptableObject>Copyright (C) 1998-2019 iText Group NV. All Rights Reserved.