public class CodeWScope extends Code
| Modifier and Type | Field and Description |
|---|---|
(package private) BSONObject |
_scope |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
CodeWScope(java.lang.String code,
BSONObject scope)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
BSONObject |
getScope()
Gets the scope, which is is a mapping from identifiers to values, representing the scope in which the code should be evaluated.
|
int |
hashCode() |
private static final long serialVersionUID
final BSONObject _scope
public CodeWScope(java.lang.String code,
BSONObject scope)
code - the codescope - the scopepublic BSONObject getScope()