public class CodeWScope extends Code
BsonType.JAVASCRIPT_WITH_SCOPE
,
Serialized FormModifier and Type | Field and Description |
---|---|
private BSONObject |
scope |
private static long |
serialVersionUID |
Constructor and Description |
---|
CodeWScope(java.lang.String code,
BSONObject scope)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
BSONObject |
getScope()
Gets the scope for this JavaScript
|
int |
hashCode() |
private final BSONObject scope
private static final long serialVersionUID
public CodeWScope(java.lang.String code, BSONObject scope)
code
- the JavaScript codescope
- the scope as a documentpublic BSONObject getScope()