public class BsonJavaScript extends BsonValue
Constructor | Description |
---|---|
BsonJavaScript(String code) |
Construct a new instance with the given JavaScript code.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
BsonType |
getBsonType() |
Gets the BSON type of this value.
|
String |
getCode() |
Get the Javascript code.
|
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 BsonJavaScript(String code)
code
- the Javascript codepublic BsonType getBsonType()
BsonValue
getBsonType
in class BsonValue
public String getCode()