static void eventHandlerAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Local<v8::Object> holder = info.Holder(); TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); EventListener* cppValue(impl->eventHandlerAttribute()); v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListener::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8::Value>(v8::Null(info.GetIsolate()))); }
void UmlValueSpecificationAction::write(FileOut & out) { write_begin(out, "ValueSpecificationAction"); Q3CString val; switch (_lang) { case Uml: val = value(); break; case Cpp: val = cppValue(); break; default: // Java val = javaValue(); } if (! val.isEmpty()) out.ref(activity()->add_opaque_expression(val, this), "value", "OPAQUE_EXPRESSION_"); write_end(out); }