Package org.bson.types
Class CodeWithScope
- java.lang.Object
-
- org.bson.types.Code
-
- org.bson.types.CodeWithScope
-
- All Implemented Interfaces:
java.io.Serializable
@Deprecated(since="2022-10-31") public class CodeWithScope extends Code
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A representation of the JavaScript Code with Scope BSON type.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CodeWithScope(java.lang.String code, Document scope)
Deprecated.Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Deprecated.Document
getScope()
Deprecated.Gets the scope, which is is a mapping from identifiers to values, representing the scope in which the code should be evaluated.int
hashCode()
Deprecated.
-
-
-
Constructor Detail
-
CodeWithScope
public CodeWithScope(java.lang.String code, Document scope)
Deprecated.Construct an instance.- Parameters:
code
- the codescope
- the scope
-
-
Method Detail
-
getScope
public Document getScope()
Deprecated.Gets the scope, which is is a mapping from identifiers to values, representing the scope in which the code should be evaluated.- Returns:
- the scope
-
-