WebCore/generated/JSInspectorFrontendHost.cpp
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     1 /*
       
     2     This file is part of the WebKit open source project.
       
     3     This file has been generated by generate-bindings.pl. DO NOT MODIFY!
       
     4 
       
     5     This library is free software; you can redistribute it and/or
       
     6     modify it under the terms of the GNU Library General Public
       
     7     License as published by the Free Software Foundation; either
       
     8     version 2 of the License, or (at your option) any later version.
       
     9 
       
    10     This library is distributed in the hope that it will be useful,
       
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    13     Library General Public License for more details.
       
    14 
       
    15     You should have received a copy of the GNU Library General Public License
       
    16     along with this library; see the file COPYING.LIB.  If not, write to
       
    17     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
       
    18     Boston, MA 02110-1301, USA.
       
    19 */
       
    20 
       
    21 #include "config.h"
       
    22 
       
    23 #if ENABLE(INSPECTOR)
       
    24 
       
    25 #include "JSInspectorFrontendHost.h"
       
    26 
       
    27 #include "InspectorFrontendHost.h"
       
    28 #include "KURL.h"
       
    29 #include <runtime/Error.h>
       
    30 #include <runtime/JSString.h>
       
    31 #include <wtf/GetPtr.h>
       
    32 
       
    33 using namespace JSC;
       
    34 
       
    35 namespace WebCore {
       
    36 
       
    37 ASSERT_CLASS_FITS_IN_CELL(JSInspectorFrontendHost);
       
    38 
       
    39 /* Hash table */
       
    40 #if ENABLE(JIT)
       
    41 #define THUNK_GENERATOR(generator) , generator
       
    42 #else
       
    43 #define THUNK_GENERATOR(generator)
       
    44 #endif
       
    45 
       
    46 static const HashTableValue JSInspectorFrontendHostTableValues[2] =
       
    47 {
       
    48     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsInspectorFrontendHostConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    49     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    50 };
       
    51 
       
    52 #undef THUNK_GENERATOR
       
    53 static JSC_CONST_HASHTABLE HashTable JSInspectorFrontendHostTable = { 2, 1, JSInspectorFrontendHostTableValues, 0 };
       
    54 /* Hash table for constructor */
       
    55 #if ENABLE(JIT)
       
    56 #define THUNK_GENERATOR(generator) , generator
       
    57 #else
       
    58 #define THUNK_GENERATOR(generator)
       
    59 #endif
       
    60 
       
    61 static const HashTableValue JSInspectorFrontendHostConstructorTableValues[1] =
       
    62 {
       
    63     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    64 };
       
    65 
       
    66 #undef THUNK_GENERATOR
       
    67 static JSC_CONST_HASHTABLE HashTable JSInspectorFrontendHostConstructorTable = { 1, 0, JSInspectorFrontendHostConstructorTableValues, 0 };
       
    68 class JSInspectorFrontendHostConstructor : public DOMConstructorObject {
       
    69 public:
       
    70     JSInspectorFrontendHostConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
    71 
       
    72     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    73     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    74     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    75     static const JSC::ClassInfo s_info;
       
    76     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    77     {
       
    78         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    79     }
       
    80 protected:
       
    81     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
    82 };
       
    83 
       
    84 const ClassInfo JSInspectorFrontendHostConstructor::s_info = { "InspectorFrontendHostConstructor", 0, &JSInspectorFrontendHostConstructorTable, 0 };
       
    85 
       
    86 JSInspectorFrontendHostConstructor::JSInspectorFrontendHostConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
    87     : DOMConstructorObject(JSInspectorFrontendHostConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
    88 {
       
    89     putDirect(exec->propertyNames().prototype, JSInspectorFrontendHostPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
    90 }
       
    91 
       
    92 bool JSInspectorFrontendHostConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
    93 {
       
    94     return getStaticValueSlot<JSInspectorFrontendHostConstructor, DOMObject>(exec, &JSInspectorFrontendHostConstructorTable, this, propertyName, slot);
       
    95 }
       
    96 
       
    97 bool JSInspectorFrontendHostConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
    98 {
       
    99     return getStaticValueDescriptor<JSInspectorFrontendHostConstructor, DOMObject>(exec, &JSInspectorFrontendHostConstructorTable, this, propertyName, descriptor);
       
   100 }
       
   101 
       
   102 /* Hash table for prototype */
       
   103 #if ENABLE(JIT)
       
   104 #define THUNK_GENERATOR(generator) , generator
       
   105 #else
       
   106 #define THUNK_GENERATOR(generator)
       
   107 #endif
       
   108 
       
   109 static const HashTableValue JSInspectorFrontendHostPrototypeTableValues[15] =
       
   110 {
       
   111     { "loaded", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionLoaded), (intptr_t)0 THUNK_GENERATOR(0) },
       
   112     { "closeWindow", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionCloseWindow), (intptr_t)0 THUNK_GENERATOR(0) },
       
   113     { "bringToFront", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionBringToFront), (intptr_t)0 THUNK_GENERATOR(0) },
       
   114     { "inspectedURLChanged", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionInspectedURLChanged), (intptr_t)1 THUNK_GENERATOR(0) },
       
   115     { "requestAttachWindow", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionRequestAttachWindow), (intptr_t)0 THUNK_GENERATOR(0) },
       
   116     { "requestDetachWindow", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionRequestDetachWindow), (intptr_t)0 THUNK_GENERATOR(0) },
       
   117     { "setAttachedWindowHeight", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionSetAttachedWindowHeight), (intptr_t)1 THUNK_GENERATOR(0) },
       
   118     { "moveWindowBy", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionMoveWindowBy), (intptr_t)2 THUNK_GENERATOR(0) },
       
   119     { "localizedStringsURL", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionLocalizedStringsURL), (intptr_t)0 THUNK_GENERATOR(0) },
       
   120     { "hiddenPanels", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionHiddenPanels), (intptr_t)0 THUNK_GENERATOR(0) },
       
   121     { "copyText", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionCopyText), (intptr_t)1 THUNK_GENERATOR(0) },
       
   122     { "platform", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionPlatform), (intptr_t)0 THUNK_GENERATOR(0) },
       
   123     { "port", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionPort), (intptr_t)0 THUNK_GENERATOR(0) },
       
   124     { "showContextMenu", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsInspectorFrontendHostPrototypeFunctionShowContextMenu), (intptr_t)2 THUNK_GENERATOR(0) },
       
   125     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   126 };
       
   127 
       
   128 #undef THUNK_GENERATOR
       
   129 static JSC_CONST_HASHTABLE HashTable JSInspectorFrontendHostPrototypeTable = { 36, 31, JSInspectorFrontendHostPrototypeTableValues, 0 };
       
   130 const ClassInfo JSInspectorFrontendHostPrototype::s_info = { "InspectorFrontendHostPrototype", 0, &JSInspectorFrontendHostPrototypeTable, 0 };
       
   131 
       
   132 JSObject* JSInspectorFrontendHostPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   133 {
       
   134     return getDOMPrototype<JSInspectorFrontendHost>(exec, globalObject);
       
   135 }
       
   136 
       
   137 bool JSInspectorFrontendHostPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   138 {
       
   139     return getStaticFunctionSlot<JSObject>(exec, &JSInspectorFrontendHostPrototypeTable, this, propertyName, slot);
       
   140 }
       
   141 
       
   142 bool JSInspectorFrontendHostPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   143 {
       
   144     return getStaticFunctionDescriptor<JSObject>(exec, &JSInspectorFrontendHostPrototypeTable, this, propertyName, descriptor);
       
   145 }
       
   146 
       
   147 const ClassInfo JSInspectorFrontendHost::s_info = { "InspectorFrontendHost", 0, &JSInspectorFrontendHostTable, 0 };
       
   148 
       
   149 JSInspectorFrontendHost::JSInspectorFrontendHost(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<InspectorFrontendHost> impl)
       
   150     : DOMObjectWithGlobalPointer(structure, globalObject)
       
   151     , m_impl(impl)
       
   152 {
       
   153 }
       
   154 
       
   155 JSInspectorFrontendHost::~JSInspectorFrontendHost()
       
   156 {
       
   157     forgetDOMObject(this, impl());
       
   158 }
       
   159 
       
   160 JSObject* JSInspectorFrontendHost::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   161 {
       
   162     return new (exec) JSInspectorFrontendHostPrototype(globalObject, JSInspectorFrontendHostPrototype::createStructure(globalObject->objectPrototype()));
       
   163 }
       
   164 
       
   165 bool JSInspectorFrontendHost::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   166 {
       
   167     return getStaticValueSlot<JSInspectorFrontendHost, Base>(exec, &JSInspectorFrontendHostTable, this, propertyName, slot);
       
   168 }
       
   169 
       
   170 bool JSInspectorFrontendHost::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   171 {
       
   172     return getStaticValueDescriptor<JSInspectorFrontendHost, Base>(exec, &JSInspectorFrontendHostTable, this, propertyName, descriptor);
       
   173 }
       
   174 
       
   175 JSValue jsInspectorFrontendHostConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   176 {
       
   177     JSInspectorFrontendHost* domObject = static_cast<JSInspectorFrontendHost*>(asObject(slotBase));
       
   178     return JSInspectorFrontendHost::getConstructor(exec, domObject->globalObject());
       
   179 }
       
   180 JSValue JSInspectorFrontendHost::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   181 {
       
   182     return getDOMConstructor<JSInspectorFrontendHostConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   183 }
       
   184 
       
   185 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionLoaded(ExecState* exec)
       
   186 {
       
   187     JSValue thisValue = exec->hostThisValue();
       
   188     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   189         return throwVMTypeError(exec);
       
   190     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   191     InspectorFrontendHost* imp = static_cast<InspectorFrontendHost*>(castedThis->impl());
       
   192 
       
   193     imp->loaded();
       
   194     return JSValue::encode(jsUndefined());
       
   195 }
       
   196 
       
   197 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionCloseWindow(ExecState* exec)
       
   198 {
       
   199     JSValue thisValue = exec->hostThisValue();
       
   200     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   201         return throwVMTypeError(exec);
       
   202     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   203     InspectorFrontendHost* imp = static_cast<InspectorFrontendHost*>(castedThis->impl());
       
   204 
       
   205     imp->closeWindow();
       
   206     return JSValue::encode(jsUndefined());
       
   207 }
       
   208 
       
   209 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionBringToFront(ExecState* exec)
       
   210 {
       
   211     JSValue thisValue = exec->hostThisValue();
       
   212     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   213         return throwVMTypeError(exec);
       
   214     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   215     InspectorFrontendHost* imp = static_cast<InspectorFrontendHost*>(castedThis->impl());
       
   216 
       
   217     imp->bringToFront();
       
   218     return JSValue::encode(jsUndefined());
       
   219 }
       
   220 
       
   221 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionInspectedURLChanged(ExecState* exec)
       
   222 {
       
   223     JSValue thisValue = exec->hostThisValue();
       
   224     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   225         return throwVMTypeError(exec);
       
   226     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   227     InspectorFrontendHost* imp = static_cast<InspectorFrontendHost*>(castedThis->impl());
       
   228     const String& newURL = ustringToString(exec->argument(0).toString(exec));
       
   229 
       
   230     imp->inspectedURLChanged(newURL);
       
   231     return JSValue::encode(jsUndefined());
       
   232 }
       
   233 
       
   234 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionRequestAttachWindow(ExecState* exec)
       
   235 {
       
   236     JSValue thisValue = exec->hostThisValue();
       
   237     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   238         return throwVMTypeError(exec);
       
   239     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   240     InspectorFrontendHost* imp = static_cast<InspectorFrontendHost*>(castedThis->impl());
       
   241 
       
   242     imp->requestAttachWindow();
       
   243     return JSValue::encode(jsUndefined());
       
   244 }
       
   245 
       
   246 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionRequestDetachWindow(ExecState* exec)
       
   247 {
       
   248     JSValue thisValue = exec->hostThisValue();
       
   249     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   250         return throwVMTypeError(exec);
       
   251     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   252     InspectorFrontendHost* imp = static_cast<InspectorFrontendHost*>(castedThis->impl());
       
   253 
       
   254     imp->requestDetachWindow();
       
   255     return JSValue::encode(jsUndefined());
       
   256 }
       
   257 
       
   258 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionSetAttachedWindowHeight(ExecState* exec)
       
   259 {
       
   260     JSValue thisValue = exec->hostThisValue();
       
   261     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   262         return throwVMTypeError(exec);
       
   263     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   264     InspectorFrontendHost* imp = static_cast<InspectorFrontendHost*>(castedThis->impl());
       
   265     unsigned height = exec->argument(0).toInt32(exec);
       
   266 
       
   267     imp->setAttachedWindowHeight(height);
       
   268     return JSValue::encode(jsUndefined());
       
   269 }
       
   270 
       
   271 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionMoveWindowBy(ExecState* exec)
       
   272 {
       
   273     JSValue thisValue = exec->hostThisValue();
       
   274     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   275         return throwVMTypeError(exec);
       
   276     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   277     InspectorFrontendHost* imp = static_cast<InspectorFrontendHost*>(castedThis->impl());
       
   278     float x = exec->argument(0).toFloat(exec);
       
   279     float y = exec->argument(1).toFloat(exec);
       
   280 
       
   281     imp->moveWindowBy(x, y);
       
   282     return JSValue::encode(jsUndefined());
       
   283 }
       
   284 
       
   285 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionLocalizedStringsURL(ExecState* exec)
       
   286 {
       
   287     JSValue thisValue = exec->hostThisValue();
       
   288     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   289         return throwVMTypeError(exec);
       
   290     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   291     InspectorFrontendHost* imp = static_cast<InspectorFrontendHost*>(castedThis->impl());
       
   292 
       
   293 
       
   294     JSC::JSValue result = jsString(exec, imp->localizedStringsURL());
       
   295     return JSValue::encode(result);
       
   296 }
       
   297 
       
   298 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionHiddenPanels(ExecState* exec)
       
   299 {
       
   300     JSValue thisValue = exec->hostThisValue();
       
   301     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   302         return throwVMTypeError(exec);
       
   303     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   304     InspectorFrontendHost* imp = static_cast<InspectorFrontendHost*>(castedThis->impl());
       
   305 
       
   306 
       
   307     JSC::JSValue result = jsString(exec, imp->hiddenPanels());
       
   308     return JSValue::encode(result);
       
   309 }
       
   310 
       
   311 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionCopyText(ExecState* exec)
       
   312 {
       
   313     JSValue thisValue = exec->hostThisValue();
       
   314     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   315         return throwVMTypeError(exec);
       
   316     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   317     InspectorFrontendHost* imp = static_cast<InspectorFrontendHost*>(castedThis->impl());
       
   318     const String& text = ustringToString(exec->argument(0).toString(exec));
       
   319 
       
   320     imp->copyText(text);
       
   321     return JSValue::encode(jsUndefined());
       
   322 }
       
   323 
       
   324 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionPlatform(ExecState* exec)
       
   325 {
       
   326     JSValue thisValue = exec->hostThisValue();
       
   327     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   328         return throwVMTypeError(exec);
       
   329     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   330     return JSValue::encode(castedThis->platform(exec));
       
   331 }
       
   332 
       
   333 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionPort(ExecState* exec)
       
   334 {
       
   335     JSValue thisValue = exec->hostThisValue();
       
   336     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   337         return throwVMTypeError(exec);
       
   338     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   339     return JSValue::encode(castedThis->port(exec));
       
   340 }
       
   341 
       
   342 EncodedJSValue JSC_HOST_CALL jsInspectorFrontendHostPrototypeFunctionShowContextMenu(ExecState* exec)
       
   343 {
       
   344     JSValue thisValue = exec->hostThisValue();
       
   345     if (!thisValue.inherits(&JSInspectorFrontendHost::s_info))
       
   346         return throwVMTypeError(exec);
       
   347     JSInspectorFrontendHost* castedThis = static_cast<JSInspectorFrontendHost*>(asObject(thisValue));
       
   348     return JSValue::encode(castedThis->showContextMenu(exec));
       
   349 }
       
   350 
       
   351 JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, InspectorFrontendHost* object)
       
   352 {
       
   353     return getDOMObjectWrapper<JSInspectorFrontendHost>(exec, globalObject, object);
       
   354 }
       
   355 InspectorFrontendHost* toInspectorFrontendHost(JSC::JSValue value)
       
   356 {
       
   357     return value.inherits(&JSInspectorFrontendHost::s_info) ? static_cast<JSInspectorFrontendHost*>(asObject(value))->impl() : 0;
       
   358 }
       
   359 
       
   360 }
       
   361 
       
   362 #endif // ENABLE(INSPECTOR)