public class CodeWScope extends Code
BsonType.JAVASCRIPT_WITH_SCOPE
,
Serialized FormConstructor and Description |
---|
CodeWScope(String code,
BSONObject scope)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
BSONObject |
getScope()
Gets the scope for this JavaScript
|
int |
hashCode() |
public CodeWScope(String code, BSONObject scope)
code
- the JavaScript codescope
- the scope as a document