m_classTemplate(NULL),
m_constructorCallback(classD->js_class_constructor_cb)
{
- if (NULL != classD->js_class_template_getter_fun)
- {
+ if (NULL != classD->js_class_template_getter_fun) {
m_classTemplate = classD->js_class_template_getter_fun();
}
- if(classD->class_options){
+ if (classD->class_options) {
LogDebug("class options is not a null");
m_options = OptionsPtr(new Options(classD->class_options));
}
}
JSObjectDeclaration::~JSObjectDeclaration()
-{
-}
+{}
-bool JSObjectDeclaration::checkIframesSupported() const{
+bool JSObjectDeclaration::checkIframesSupported() const
+{
LogDebug("Check iframe supported");
- if(!m_options ||
- m_options->getIframeObject() == Options::IFrameObject::None)
+ if (!m_options ||
+ m_options->getIframeObject() == Options::IFrameObject::None)
{
LogDebug("Iframe NOT supported for object: " << getName());
return false;
}
JSObjectDeclaration::Options::ClassType
- JSObjectDeclaration::Options::getType() const
+JSObjectDeclaration::Options::getType() const
{
LogDebug("Get type field from declaration's option");
Assert(m_options && "Pointer to options is NULL");
- switch(m_options->type){
+ switch (m_options->type) {
case JS_CLASS: return ClassType::Class;
case JS_FUNCTION: return ClassType::Function;
case JS_INTERFACE: return ClassType::Interface;
}
JSObjectDeclaration::Options::IFrameObject
- JSObjectDeclaration::Options::getIframeObject() const
+JSObjectDeclaration::Options::getIframeObject() const
{
LogDebug("Get Frame Option");
Assert(m_options && "Options object is NULL");
- switch(m_options->iframe_option){
+ switch (m_options->iframe_option) {
case NONE: return IFrameObject::None;
case REFERENCE: return IFrameObject::Reference;
case CREATE_INSTANCE: return IFrameObject::CreateInstance;
}
JSObjectDeclaration::Options::IFrameNotice
- JSObjectDeclaration::Options::getIframeNotice() const
+JSObjectDeclaration::Options::getIframeNotice() const
{
LogDebug("Get Frame Option");
Assert(m_options && "Pointer to options is null");
- switch(m_options->iframe_notice){
+ switch (m_options->iframe_notice) {
case NONE_NOTICE: return IFrameNotice::None;
case ALWAYS_NOTICE: return IFrameNotice::AlwaysNotice;
default:
}
JSObjectDeclaration::Options::IFrameOverlay
- JSObjectDeclaration::Options::getIframeOverlay() const
+JSObjectDeclaration::Options::getIframeOverlay() const
{
LogDebug("Get Frame Option");
Assert(m_options && "Pointer to options is null");
- switch(m_options->iframe_overlay){
+ switch (m_options->iframe_overlay) {
case IGNORED: return IFrameOverlay::Ignored;
case USE_OVERLAYED: return IFrameOverlay::UseOverlayed;
case OVERLAYED_BEFORE_ORIGINAL:
- return IFrameOverlay::OverlayedBeforeOriginal;
+ return IFrameOverlay::OverlayedBeforeOriginal;
default:
Assert(0 && "Wrong value of overlay option");
}
}
JSObjectDeclaration::Options::PrivateData
- JSObjectDeclaration::Options::getPrivateData() const
+JSObjectDeclaration::Options::getPrivateData() const
{
Assert(m_options && m_options->private_data && "empty private data");
return m_options->private_data;