Package org.rapidcontext.core.js
Class ConnectionWrapper
java.lang.Object
org.mozilla.javascript.SlotMapOwner
org.mozilla.javascript.ScriptableObject
org.rapidcontext.core.js.ConnectionWrapper
- All Implemented Interfaces:
Serializable,org.mozilla.javascript.ConstProperties,org.mozilla.javascript.debug.DebuggableObject,org.mozilla.javascript.Scriptable,org.mozilla.javascript.SymbolScriptable,org.mozilla.javascript.Wrapper
public final class ConnectionWrapper
extends org.mozilla.javascript.ScriptableObject
implements org.mozilla.javascript.Wrapper
A JavaScript connection wrapper. This class encapsulates a
connection channel and forwards calls to the Java methods.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptableObject
org.mozilla.javascript.ScriptableObject.DescriptorInfo, org.mozilla.javascript.ScriptableObject.KeyComparator, org.mozilla.javascript.ScriptableObject.LambdaGetterFunction, org.mozilla.javascript.ScriptableObject.LambdaSetterFunction -
Field Summary
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionConnectionWrapper(Channel channel, org.mozilla.javascript.Scriptable parentScope) Creates a new JavaScript connection wrapper. -
Method Summary
Modifier and TypeMethodDescriptionReturns a named property from this object.Returns the class name.booleanhasInstance(org.mozilla.javascript.Scriptable instance) Checks for JavaScript instance objects (always returns false).unwrap()Returns the wrapped object.Methods inherited from class org.mozilla.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkPropertyDefinition, checkSlotRemoval, defineBuiltinProperty, defineBuiltinProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizeMethods inherited from class org.mozilla.javascript.SlotMapOwner
createSlotMap
-
Constructor Details
-
ConnectionWrapper
Creates a new JavaScript connection wrapper.- Parameters:
channel- the connection channelparentScope- the object parent scope
-
-
Method Details
-
getClassName
Returns the class name.- Specified by:
getClassNamein interfaceorg.mozilla.javascript.Scriptable- Specified by:
getClassNamein classorg.mozilla.javascript.ScriptableObject- Returns:
- the class name
-
hasInstance
public boolean hasInstance(org.mozilla.javascript.Scriptable instance) Checks for JavaScript instance objects (always returns false).- Specified by:
hasInstancein interfaceorg.mozilla.javascript.Scriptable- Overrides:
hasInstancein classorg.mozilla.javascript.ScriptableObject- Parameters:
instance- the object to check- Returns:
- always returns false (no instances possible)
-
get
Returns a named property from this object.- Specified by:
getin interfaceorg.mozilla.javascript.Scriptable- Overrides:
getin classorg.mozilla.javascript.ScriptableObject- Parameters:
name- the name of the propertystart- the object in which the lookup began- Returns:
- the value of the property, or NOT_FOUND if not found
-
unwrap
Returns the wrapped object.- Specified by:
unwrapin interfaceorg.mozilla.javascript.Wrapper- Returns:
- the unwrapped object
-