public class BsonJavaScriptWithScope extends BsonValue
Constructor | Description |
---|---|
BsonJavaScriptWithScopeβ(String code,
BsonDocument scope) |
Construct a new instance with the given code and scope.
|
Modifier and Type | Method | 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β()