Package org.bson.types
Class CodeWScope
- java.lang.Object
 - 
- org.bson.types.Code
 - 
- org.bson.types.CodeWScope
 
 
 
- 
- All Implemented Interfaces:
 Serializable
public class CodeWScope extends Code
Represents the CodeWScope BSON type.- See Also:
 BsonType.JAVASCRIPT_WITH_SCOPE, Serialized Form
 
- 
- 
Constructor Summary
Constructors Constructor Description CodeWScope(String code, BSONObject scope)Creates a new instance 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)BSONObjectgetScope()Gets the scope for this JavaScriptinthashCode() 
 - 
 
- 
- 
Constructor Detail
- 
CodeWScope
public CodeWScope(String code, BSONObject scope)
Creates a new instance- Parameters:
 code- the JavaScript codescope- the scope as a document
 
 - 
 
 -