#ifndef JSTestNode_h
#define JSTestNode_h
#include "JSNode.h"
#include "TestNode.h"
namespace WebCore {
class JSTestNode : public JSNode {
public:
typedef JSNode Base;
static JSTestNode* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestNode> impl)
{
JSTestNode* ptr = new (NotNull, JSC::allocateCell<JSTestNode>(globalObject->vm().heap)) JSTestNode(structure, globalObject, impl);
ptr->finishCreation(globalObject->vm());
return ptr;
}
static JSC::JSObject* createPrototype(JSC::VM&, JSC::JSGlobalObject*);
static JSC::JSObject* getPrototype(JSC::VM&, JSC::JSGlobalObject*);
DECLARE_INFO;
static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
{
return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::JSType(JSNodeType), StructureFlags), info());
}
static JSC::JSValue getConstructor(JSC::VM&, JSC::JSGlobalObject*);
static void visitChildren(JSCell*, JSC::SlotVisitor&);
TestNode& impl() const
{
return static_cast<TestNode&>(Base::impl());
}
protected:
JSTestNode(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestNode>);
void finishCreation(JSC::VM& vm)
{
Base::finishCreation(vm);
ASSERT(inherits(info()));
}
static const unsigned StructureFlags = JSC::OverridesVisitChildren | Base::StructureFlags;
};
}
#endif