StringConstructor.h [plain text]
#ifndef StringConstructor_h
#define StringConstructor_h
#include "InternalFunction.h"
namespace JSC {
class StringPrototype;
class StringConstructor : public InternalFunction {
public:
StringConstructor(ExecState*, JSGlobalObject*, Structure*, StringPrototype*);
static const ClassInfo s_info;
static Structure* createStructure(JSGlobalData& globalData, JSValue prototype)
{
return Structure::create(globalData, prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
}
protected:
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | InternalFunction::StructureFlags;
private:
virtual ConstructType getConstructData(ConstructData&);
virtual CallType getCallData(CallData&);
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);
};
}
#endif // StringConstructor_h