public class CodeWScope extends Code
BsonType.JAVASCRIPT_WITH_SCOPE
,
Serialized FormConstructor 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() |
public CodeWScope(java.lang.String code, BSONObject scope)
code
- the JavaScript codescope
- the scope as a documentpublic BSONObject getScope()