public class BsonJavaScriptWithScope extends BsonValue
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
code |
private BsonDocument |
scope |
Constructor and Description |
---|
BsonJavaScriptWithScope(java.lang.String code,
BsonDocument scope)
Construct a new instance with the given code and scope.
|
Modifier and Type | Method and Description |
---|---|
(package private) static BsonJavaScriptWithScope |
clone(BsonJavaScriptWithScope from) |
boolean |
equals(java.lang.Object o) |
BsonType |
getBsonType()
Gets the BSON type of this value.
|
java.lang.String |
getCode()
Get the code.
|
BsonDocument |
getScope()
Get the scope.
|
int |
hashCode() |
java.lang.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
private final java.lang.String code
private final BsonDocument scope
public BsonJavaScriptWithScope(java.lang.String code, BsonDocument scope)
code
- the codescope
- the scopepublic BsonType getBsonType()
BsonValue
getBsonType
in class BsonValue
public java.lang.String getCode()
public BsonDocument getScope()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
static BsonJavaScriptWithScope clone(BsonJavaScriptWithScope from)