Package org.bson.types
Class CodeWScope
- java.lang.Object
-
- org.bson.types.Code
-
- org.bson.types.CodeWScope
-
- All Implemented Interfaces:
java.io.Serializable
@Deprecated(since="2022-10-31") public class CodeWScope extends Code
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.Represents the CodeWScope BSON type.- See Also:
BsonType.JAVASCRIPT_WITH_SCOPE, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CodeWScope(java.lang.String code, BSONObject scope)Deprecated.Creates a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Deprecated.BSONObjectgetScope()Deprecated.Gets the scope for this JavaScriptinthashCode()Deprecated.
-
-
-
Constructor Detail
-
CodeWScope
public CodeWScope(java.lang.String code, BSONObject scope)Deprecated.Creates a new instance- Parameters:
code- the JavaScript codescope- the scope as a document
-
-
Method Detail
-
getScope
public BSONObject getScope()
Deprecated.Gets the scope for this JavaScript- Returns:
- a document representing the scope
-
-