Serializable
public class CodeWScope extends Code
BsonType.JAVASCRIPT_WITH_SCOPE
,
Serialized FormConstructor | Description |
---|---|
CodeWScope(String code,
BSONObject scope) |
Creates a new instance
|
Modifier and Type | Method | 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