Class CodeWScope

java.lang.Object
org.bson.types.Code
org.bson.types.CodeWScope
All Implemented Interfaces:
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:
  • Constructor Details

    • CodeWScope

      public CodeWScope(String code, BSONObject scope)
      Deprecated.
      Creates a new instance
      Parameters:
      code - the JavaScript code
      scope - the scope as a document
  • Method Details

    • getScope

      public BSONObject getScope()
      Deprecated.
      Gets the scope for this JavaScript
      Returns:
      a document representing the scope
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Code
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Code