public class BsonJavaScriptWithScope extends BsonValue
Constructor and Description |
---|
BsonJavaScriptWithScope(String code,
BsonDocument scope)
Construct a new instance with the given code and scope.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
BsonType |
getBsonType()
Gets the BSON type of this value.
|
String |
getCode()
Get the code.
|
BsonDocument |
getScope()
Get the scope.
|
int |
hashCode() |
String |
toString() |
asArray, asBinary, asBoolean, asDateTime, asDBPointer, asDecimal128, asDocument, asDouble, asInt32, asInt64, asJavaScript, asJavaScriptWithScope, asNumber, asObjectId, asRegularExpression, asString, asSymbol, asTimestamp, isArray, isBinary, isBoolean, isDateTime, isDBPointer, isDecimal128, isDocument, isDouble, isInt32, isInt64, isJavaScript, isJavaScriptWithScope, isNull, isNumber, isObjectId, isRegularExpression, isString, isSymbol, isTimestamp
public BsonJavaScriptWithScope(String code, BsonDocument scope)
code
- the codescope
- the scopepublic BsonType getBsonType()
BsonValue
getBsonType
in class BsonValue
public String getCode()
public BsonDocument getScope()