DOMTestObj.mm   [plain text]


/*
 * This file is part of the WebKit open source project.
 * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
 */

#import "config.h"
#import "DOMInternal.h"

#import "DOMTestObj.h"

#import "DOMCustomXPathNSResolver.h"
#import "DOMDictionaryInternal.h"
#import "DOMDocumentInternal.h"
#import "DOMNodeInternal.h"
#import "DOMSVGDocumentInternal.h"
#import "DOMSVGPointInternal.h"
#import "DOMTestDictionaryInternal.h"
#import "DOMTestEnumTypeInternal.h"
#import "DOMTestNodeInternal.h"
#import "DOMTestObjInternal.h"
#import "DOMTestObjectAConstructorInternal.h"
#import "DOMTestObjectBConstructorInternal.h"
#import "DOMTestObjectCConstructorInternal.h"
#import "DOMTestSubObjConstructorInternal.h"
#import "DOManyInternal.h"
#import "Dictionary.h"
#import "Document.h"
#import "EventListener.h"
#import "ExceptionHandlers.h"
#import "HTMLNames.h"
#import "JSMainThreadExecState.h"
#import "ObjCEventListener.h"
#import "SVGDocument.h"
#import "SVGPoint.h"
#import "SerializedScriptValue.h"
#import "TestDictionary.h"
#import "TestEnumType.h"
#import "TestNode.h"
#import "TestObj.h"
#import "TestObjectAConstructor.h"
#import "TestObjectBConstructor.h"
#import "TestObjectCConstructor.h"
#import "TestSubObjConstructor.h"
#import "ThreadCheck.h"
#import "URL.h"
#import "WebCoreObjCExtras.h"
#import "WebScriptObjectPrivate.h"
#import "XPathNSResolver.h"
#import <wtf/GetPtr.h>

#define IMPL reinterpret_cast<WebCore::TestObj*>(_internal)

@implementation DOMTestObj

- (void)dealloc
{
    if (WebCoreObjCScheduleDeallocateOnMainThread([DOMTestObj class], self))
        return;

    if (_internal)
        IMPL->deref();
    [super dealloc];
}

- (int)readOnlyLongAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->readOnlyLongAttr();
}

- (NSString *)readOnlyStringAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->readOnlyStringAttr();
}

- (DOMTestObj *)readOnlyTestObjAttr
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->readOnlyTestObjAttr()));
}

- (DOMTestSubObjConstructor *)TestSubObjEnabledBySetting
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->testSubObjEnabledBySetting()));
}

- (void)setTestSubObjEnabledBySetting:(DOMTestSubObjConstructor *)newTestSubObjEnabledBySetting
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newTestSubObjEnabledBySetting);

    if (!core(newTestSubObjEnabledBySetting))
        WebCore::raiseTypeErrorException();
    IMPL->setTestSubObjEnabledBySetting(*core(newTestSubObjEnabledBySetting));
}

- (char)byteAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->byteAttr();
}

- (void)setByteAttr:(char)newByteAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setByteAttr(newByteAttr);
}

- (unsigned char)octetAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->octetAttr();
}

- (void)setOctetAttr:(unsigned char)newOctetAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setOctetAttr(newOctetAttr);
}

- (short)shortAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->shortAttr();
}

- (void)setShortAttr:(short)newShortAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setShortAttr(newShortAttr);
}

- (short)clampedShortAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->clampedShortAttr();
}

- (void)setClampedShortAttr:(short)newClampedShortAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setClampedShortAttr(newClampedShortAttr);
}

- (short)enforceRangeShortAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->enforceRangeShortAttr();
}

- (void)setEnforceRangeShortAttr:(short)newEnforceRangeShortAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setEnforceRangeShortAttr(newEnforceRangeShortAttr);
}

- (unsigned short)unsignedShortAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->unsignedShortAttr();
}

- (void)setUnsignedShortAttr:(unsigned short)newUnsignedShortAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setUnsignedShortAttr(newUnsignedShortAttr);
}

- (int)longAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->longAttr();
}

- (void)setLongAttr:(int)newLongAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setLongAttr(newLongAttr);
}

- (long long)longLongAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->longLongAttr();
}

- (void)setLongLongAttr:(long long)newLongLongAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setLongLongAttr(newLongLongAttr);
}

- (unsigned long long)unsignedLongLongAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->unsignedLongLongAttr();
}

- (void)setUnsignedLongLongAttr:(unsigned long long)newUnsignedLongLongAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setUnsignedLongLongAttr(newUnsignedLongLongAttr);
}

- (NSString *)stringAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->stringAttr();
}

- (void)setStringAttr:(NSString *)newStringAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setStringAttr(newStringAttr);
}

- (DOMTestObj *)testObjAttr
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->testObjAttr()));
}

- (void)setTestObjAttr:(DOMTestObj *)newTestObjAttr
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newTestObjAttr);

    if (!core(newTestObjAttr))
        WebCore::raiseTypeErrorException();
    IMPL->setTestObjAttr(*core(newTestObjAttr));
}

- (DOMTestObj *)testNullableObjAttr
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->testNullableObjAttr()));
}

- (void)setTestNullableObjAttr:(DOMTestObj *)newTestNullableObjAttr
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newTestNullableObjAttr);

    IMPL->setTestNullableObjAttr(core(newTestNullableObjAttr));
}

- (DOMTestObj *)lenientTestObjAttr
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->lenientTestObjAttr()));
}

- (void)setLenientTestObjAttr:(DOMTestObj *)newLenientTestObjAttr
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newLenientTestObjAttr);

    if (!core(newLenientTestObjAttr))
        WebCore::raiseTypeErrorException();
    IMPL->setLenientTestObjAttr(*core(newLenientTestObjAttr));
}

- (NSString *)unforgeableAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->unforgeableAttr();
}

- (NSString *)stringAttrTreatingNullAsEmptyString
{
    WebCore::JSMainThreadNullState state;
    return IMPL->stringAttrTreatingNullAsEmptyString();
}

- (void)setStringAttrTreatingNullAsEmptyString:(NSString *)newStringAttrTreatingNullAsEmptyString
{
    WebCore::JSMainThreadNullState state;
    IMPL->setStringAttrTreatingNullAsEmptyString(newStringAttrTreatingNullAsEmptyString);
}

- (DOMTestObj *)XMLObjAttr
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->xmlObjAttr()));
}

- (void)setXMLObjAttr:(DOMTestObj *)newXMLObjAttr
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newXMLObjAttr);

    if (!core(newXMLObjAttr))
        WebCore::raiseTypeErrorException();
    IMPL->setXMLObjAttr(*core(newXMLObjAttr));
}

- (BOOL)create
{
    WebCore::JSMainThreadNullState state;
    return IMPL->isCreate();
}

- (void)setCreate:(BOOL)newCreate
{
    WebCore::JSMainThreadNullState state;
    IMPL->setCreate(newCreate);
}

- (NSString *)reflectedStringAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr);
}

- (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setAttributeWithoutSynchronization(WebCore::HTMLNames::reflectedstringattrAttr, newReflectedStringAttr);
}

- (int)reflectedIntegralAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr);
}

- (void)setReflectedIntegralAttr:(int)newReflectedIntegralAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, newReflectedIntegralAttr);
}

- (unsigned)reflectedUnsignedIntegralAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr);
}

- (void)setReflectedUnsignedIntegralAttr:(unsigned)newReflectedUnsignedIntegralAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, newReflectedUnsignedIntegralAttr);
}

- (BOOL)reflectedBooleanAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->hasAttributeWithoutSynchronization(WebCore::HTMLNames::reflectedbooleanattrAttr);
}

- (void)setReflectedBooleanAttr:(BOOL)newReflectedBooleanAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, newReflectedBooleanAttr);
}

- (NSString *)reflectedURLAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr);
}

- (void)setReflectedURLAttr:(NSString *)newReflectedURLAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setAttributeWithoutSynchronization(WebCore::HTMLNames::reflectedurlattrAttr, newReflectedURLAttr);
}

- (NSString *)reflectedStringAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr);
}

- (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setAttributeWithoutSynchronization(WebCore::HTMLNames::customContentStringAttrAttr, newReflectedStringAttr);
}

- (int)reflectedCustomIntegralAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr);
}

- (void)setReflectedCustomIntegralAttr:(int)newReflectedCustomIntegralAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, newReflectedCustomIntegralAttr);
}

- (BOOL)reflectedCustomBooleanAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->hasAttributeWithoutSynchronization(WebCore::HTMLNames::customContentBooleanAttrAttr);
}

- (void)setReflectedCustomBooleanAttr:(BOOL)newReflectedCustomBooleanAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, newReflectedCustomBooleanAttr);
}

- (NSString *)reflectedCustomURLAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr);
}

- (void)setReflectedCustomURLAttr:(NSString *)newReflectedCustomURLAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setAttributeWithoutSynchronization(WebCore::HTMLNames::customContentURLAttrAttr, newReflectedCustomURLAttr);
}

#if ENABLE(TEST_FEATURE)
- (NSString *)enabledAtRuntimeAttribute
{
    WebCore::JSMainThreadNullState state;
    return IMPL->enabledAtRuntimeAttribute();
}

- (void)setEnabledAtRuntimeAttribute:(NSString *)newEnabledAtRuntimeAttribute
{
    WebCore::JSMainThreadNullState state;
    IMPL->setEnabledAtRuntimeAttribute(newEnabledAtRuntimeAttribute);
}
#endif

- (int)attrWithGetterException
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    int result = IMPL->attrWithGetterException(ec);
    WebCore::raiseOnDOMError(ec);
    return result;
}

- (void)setAttrWithGetterException:(int)newAttrWithGetterException
{
    WebCore::JSMainThreadNullState state;
    IMPL->setAttrWithGetterException(newAttrWithGetterException);
}

- (int)attrWithGetterExceptionWithMessage
{
    WebCore::JSMainThreadNullState state;
    return IMPL->attrWithGetterExceptionWithMessage();
}

- (void)setAttrWithGetterExceptionWithMessage:(int)newAttrWithGetterExceptionWithMessage
{
    WebCore::JSMainThreadNullState state;
    IMPL->setAttrWithGetterExceptionWithMessage(newAttrWithGetterExceptionWithMessage);
}

- (int)attrWithSetterException
{
    WebCore::JSMainThreadNullState state;
    return IMPL->attrWithSetterException();
}

- (void)setAttrWithSetterException:(int)newAttrWithSetterException
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    IMPL->setAttrWithSetterException(newAttrWithSetterException, ec);
    WebCore::raiseOnDOMError(ec);
}

- (int)attrWithSetterExceptionWithMessage
{
    WebCore::JSMainThreadNullState state;
    return IMPL->attrWithSetterExceptionWithMessage();
}

- (void)setAttrWithSetterExceptionWithMessage:(int)newAttrWithSetterExceptionWithMessage
{
    WebCore::JSMainThreadNullState state;
    IMPL->setAttrWithSetterExceptionWithMessage(newAttrWithSetterExceptionWithMessage);
}

- (NSString *)stringAttrWithGetterException
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    NSString *result = IMPL->stringAttrWithGetterException(ec);
    WebCore::raiseOnDOMError(ec);
    return result;
}

- (void)setStringAttrWithGetterException:(NSString *)newStringAttrWithGetterException
{
    WebCore::JSMainThreadNullState state;
    IMPL->setStringAttrWithGetterException(newStringAttrWithGetterException);
}

- (NSString *)stringAttrWithSetterException
{
    WebCore::JSMainThreadNullState state;
    return IMPL->stringAttrWithSetterException();
}

- (void)setStringAttrWithSetterException:(NSString *)newStringAttrWithSetterException
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    IMPL->setStringAttrWithSetterException(newStringAttrWithSetterException, ec);
    WebCore::raiseOnDOMError(ec);
}

- (DOMTestObj *)strictTypeCheckingAttribute
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->strictTypeCheckingAttribute()));
}

- (void)setStrictTypeCheckingAttribute:(DOMTestObj *)newStrictTypeCheckingAttribute
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newStrictTypeCheckingAttribute);

    IMPL->setStrictTypeCheckingAttribute(core(newStrictTypeCheckingAttribute));
}

- (int)customAttr
{
    WebCore::JSMainThreadNullState state;
    return IMPL->customAttr();
}

- (void)setCustomAttr:(int)newCustomAttr
{
    WebCore::JSMainThreadNullState state;
    IMPL->setCustomAttr(newCustomAttr);
}

#if ENABLE(Condition4)
- (DOMTestObj *)jsBuiltinAttribute
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->jsBuiltinAttribute()));
}

- (void)setJsBuiltinAttribute:(DOMTestObj *)newJsBuiltinAttribute
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newJsBuiltinAttribute);

    if (!core(newJsBuiltinAttribute))
        WebCore::raiseTypeErrorException();
    IMPL->setJsBuiltinAttribute(*core(newJsBuiltinAttribute));
}
#endif

#if ENABLE(Condition4)
- (DOMTestObj *)jsBuiltinReadOnlyAttribute
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->jsBuiltinReadOnlyAttribute()));
}
#endif

- (int)withScriptStateAttribute
{
    WebCore::JSMainThreadNullState state;
    return IMPL->withScriptStateAttribute();
}

- (void)setWithScriptStateAttribute:(int)newWithScriptStateAttribute
{
    WebCore::JSMainThreadNullState state;
    IMPL->setWithScriptStateAttribute(newWithScriptStateAttribute);
}

- (int)withCallWithAndSetterCallWithAttribute
{
    WebCore::JSMainThreadNullState state;
    return IMPL->withCallWithAndSetterCallWithAttribute();
}

- (void)setWithCallWithAndSetterCallWithAttribute:(int)newWithCallWithAndSetterCallWithAttribute
{
    WebCore::JSMainThreadNullState state;
    IMPL->setWithCallWithAndSetterCallWithAttribute(newWithCallWithAndSetterCallWithAttribute);
}

- (DOMTestObj *)withScriptExecutionContextAttribute
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->withScriptExecutionContextAttribute()));
}

- (void)setWithScriptExecutionContextAttribute:(DOMTestObj *)newWithScriptExecutionContextAttribute
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newWithScriptExecutionContextAttribute);

    if (!core(newWithScriptExecutionContextAttribute))
        WebCore::raiseTypeErrorException();
    IMPL->setWithScriptExecutionContextAttribute(*core(newWithScriptExecutionContextAttribute));
}

- (DOMTestObj *)withScriptStateAttributeRaises
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptStateAttributeRaises(ec)));
    WebCore::raiseOnDOMError(ec);
    return result;
}

- (void)setWithScriptStateAttributeRaises:(DOMTestObj *)newWithScriptStateAttributeRaises
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newWithScriptStateAttributeRaises);

    if (!core(newWithScriptStateAttributeRaises))
        WebCore::raiseTypeErrorException();
    IMPL->setWithScriptStateAttributeRaises(*core(newWithScriptStateAttributeRaises));
}

- (DOMTestObj *)withScriptExecutionContextAttributeRaises
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptExecutionContextAttributeRaises(ec)));
    WebCore::raiseOnDOMError(ec);
    return result;
}

- (void)setWithScriptExecutionContextAttributeRaises:(DOMTestObj *)newWithScriptExecutionContextAttributeRaises
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newWithScriptExecutionContextAttributeRaises);

    if (!core(newWithScriptExecutionContextAttributeRaises))
        WebCore::raiseTypeErrorException();
    IMPL->setWithScriptExecutionContextAttributeRaises(*core(newWithScriptExecutionContextAttributeRaises));
}

- (DOMTestObj *)withScriptExecutionContextAndScriptStateAttribute
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateAttribute()));
}

- (void)setWithScriptExecutionContextAndScriptStateAttribute:(DOMTestObj *)newWithScriptExecutionContextAndScriptStateAttribute
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newWithScriptExecutionContextAndScriptStateAttribute);

    if (!core(newWithScriptExecutionContextAndScriptStateAttribute))
        WebCore::raiseTypeErrorException();
    IMPL->setWithScriptExecutionContextAndScriptStateAttribute(*core(newWithScriptExecutionContextAndScriptStateAttribute));
}

- (DOMTestObj *)withScriptExecutionContextAndScriptStateAttributeRaises
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateAttributeRaises(ec)));
    WebCore::raiseOnDOMError(ec);
    return result;
}

- (void)setWithScriptExecutionContextAndScriptStateAttributeRaises:(DOMTestObj *)newWithScriptExecutionContextAndScriptStateAttributeRaises
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newWithScriptExecutionContextAndScriptStateAttributeRaises);

    if (!core(newWithScriptExecutionContextAndScriptStateAttributeRaises))
        WebCore::raiseTypeErrorException();
    IMPL->setWithScriptExecutionContextAndScriptStateAttributeRaises(*core(newWithScriptExecutionContextAndScriptStateAttributeRaises));
}

- (DOMTestObj *)withScriptExecutionContextAndScriptStateWithSpacesAttribute
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateWithSpacesAttribute()));
}

- (void)setWithScriptExecutionContextAndScriptStateWithSpacesAttribute:(DOMTestObj *)newWithScriptExecutionContextAndScriptStateWithSpacesAttribute
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newWithScriptExecutionContextAndScriptStateWithSpacesAttribute);

    if (!core(newWithScriptExecutionContextAndScriptStateWithSpacesAttribute))
        WebCore::raiseTypeErrorException();
    IMPL->setWithScriptExecutionContextAndScriptStateWithSpacesAttribute(*core(newWithScriptExecutionContextAndScriptStateWithSpacesAttribute));
}

- (DOMTestObj *)withScriptArgumentsAndCallStackAttribute
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->withScriptArgumentsAndCallStackAttribute()));
}

- (void)setWithScriptArgumentsAndCallStackAttribute:(DOMTestObj *)newWithScriptArgumentsAndCallStackAttribute
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newWithScriptArgumentsAndCallStackAttribute);

    if (!core(newWithScriptArgumentsAndCallStackAttribute))
        WebCore::raiseTypeErrorException();
    IMPL->setWithScriptArgumentsAndCallStackAttribute(*core(newWithScriptArgumentsAndCallStackAttribute));
}

#if ENABLE(Condition1)
- (int)conditionalAttr1
{
    WebCore::JSMainThreadNullState state;
    return IMPL->conditionalAttr1();
}

- (void)setConditionalAttr1:(int)newConditionalAttr1
{
    WebCore::JSMainThreadNullState state;
    IMPL->setConditionalAttr1(newConditionalAttr1);
}
#endif

#if ENABLE(Condition1) && ENABLE(Condition2)
- (int)conditionalAttr2
{
    WebCore::JSMainThreadNullState state;
    return IMPL->conditionalAttr2();
}

- (void)setConditionalAttr2:(int)newConditionalAttr2
{
    WebCore::JSMainThreadNullState state;
    IMPL->setConditionalAttr2(newConditionalAttr2);
}
#endif

#if ENABLE(Condition1) || ENABLE(Condition2)
- (int)conditionalAttr3
{
    WebCore::JSMainThreadNullState state;
    return IMPL->conditionalAttr3();
}

- (void)setConditionalAttr3:(int)newConditionalAttr3
{
    WebCore::JSMainThreadNullState state;
    IMPL->setConditionalAttr3(newConditionalAttr3);
}
#endif

#if ENABLE(Condition1)
- (DOMTestObjectAConstructor *)conditionalAttr4
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->conditionalAttr4()));
}

- (void)setConditionalAttr4:(DOMTestObjectAConstructor *)newConditionalAttr4
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newConditionalAttr4);

    if (!core(newConditionalAttr4))
        WebCore::raiseTypeErrorException();
    IMPL->setConditionalAttr4(*core(newConditionalAttr4));
}
#endif

#if ENABLE(Condition1) && ENABLE(Condition2)
- (DOMTestObjectBConstructor *)conditionalAttr5
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->conditionalAttr5()));
}

- (void)setConditionalAttr5:(DOMTestObjectBConstructor *)newConditionalAttr5
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newConditionalAttr5);

    if (!core(newConditionalAttr5))
        WebCore::raiseTypeErrorException();
    IMPL->setConditionalAttr5(*core(newConditionalAttr5));
}
#endif

#if ENABLE(Condition1) || ENABLE(Condition2)
- (DOMTestObjectCConstructor *)conditionalAttr6
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->conditionalAttr6()));
}

- (void)setConditionalAttr6:(DOMTestObjectCConstructor *)newConditionalAttr6
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newConditionalAttr6);

    if (!core(newConditionalAttr6))
        WebCore::raiseTypeErrorException();
    IMPL->setConditionalAttr6(*core(newConditionalAttr6));
}
#endif

- (DOMany *)anyAttribute
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->anyAttribute()));
}

- (void)setAnyAttribute:(DOMany *)newAnyAttribute
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newAnyAttribute);

    IMPL->setAnyAttribute(core(newAnyAttribute));
}

- (DOMDocument *)contentDocument
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->contentDocument()));
}

- (DOMSVGPoint *)mutablePoint
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->mutablePoint()));
}

- (void)setMutablePoint:(DOMSVGPoint *)newMutablePoint
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newMutablePoint);

    IMPL->setMutablePoint(core(newMutablePoint));
}

- (DOMSVGPoint *)immutablePoint
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->immutablePoint()));
}

- (void)setImmutablePoint:(DOMSVGPoint *)newImmutablePoint
{
    WebCore::JSMainThreadNullState state;
    ASSERT(newImmutablePoint);

    IMPL->setImmutablePoint(core(newImmutablePoint));
}

- (int)strawberry
{
    WebCore::JSMainThreadNullState state;
    return IMPL->blueberry();
}

- (void)setStrawberry:(int)newStrawberry
{
    WebCore::JSMainThreadNullState state;
    IMPL->setBlueberry(newStrawberry);
}

- (float)strictFloat
{
    WebCore::JSMainThreadNullState state;
    return IMPL->strictFloat();
}

- (void)setStrictFloat:(float)newStrictFloat
{
    WebCore::JSMainThreadNullState state;
    IMPL->setStrictFloat(newStrictFloat);
}

- (int)descriptionName
{
    WebCore::JSMainThreadNullState state;
    return IMPL->description();
}

- (int)idName
{
    WebCore::JSMainThreadNullState state;
    return IMPL->id();
}

- (void)setIdName:(int)newIdName
{
    WebCore::JSMainThreadNullState state;
    IMPL->setId(newIdName);
}

- (NSString *)hashName
{
    WebCore::JSMainThreadNullState state;
    return IMPL->hash();
}

- (int)replaceableAttribute
{
    WebCore::JSMainThreadNullState state;
    return IMPL->replaceableAttribute();
}

- (double)nullableDoubleAttribute
{
    WebCore::JSMainThreadNullState state;
    return IMPL->nullableDoubleAttribute();
}

- (int)nullableLongAttribute
{
    WebCore::JSMainThreadNullState state;
    return IMPL->nullableLongAttribute();
}

- (BOOL)nullableBooleanAttribute
{
    WebCore::JSMainThreadNullState state;
    return IMPL->nullableBooleanAttribute();
}

- (NSString *)nullableStringAttribute
{
    WebCore::JSMainThreadNullState state;
    return IMPL->nullableStringAttribute();
}

- (int)nullableLongSettableAttribute
{
    WebCore::JSMainThreadNullState state;
    return IMPL->nullableLongSettableAttribute();
}

- (void)setNullableLongSettableAttribute:(int)newNullableLongSettableAttribute
{
    WebCore::JSMainThreadNullState state;
    IMPL->setNullableLongSettableAttribute(newNullableLongSettableAttribute);
}

- (NSString *)nullableStringSettableAttribute
{
    WebCore::JSMainThreadNullState state;
    return IMPL->nullableStringSettableAttribute();
}

- (void)setNullableStringSettableAttribute:(NSString *)newNullableStringSettableAttribute
{
    WebCore::JSMainThreadNullState state;
    IMPL->setNullableStringSettableAttribute(newNullableStringSettableAttribute);
}

- (int)nullableStringValue
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    int result = IMPL->nullableStringValue(ec);
    WebCore::raiseOnDOMError(ec);
    return result;
}

- (void)setNullableStringValue:(int)newNullableStringValue
{
    WebCore::JSMainThreadNullState state;
    IMPL->setNullableStringValue(newNullableStringValue);
}

- (NSString *)attribute
{
    WebCore::JSMainThreadNullState state;
    return IMPL->attribute();
}

- (DOMTestNode *)putForwardsAttribute
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->putForwardsAttribute()));
}

- (DOMTestNode *)putForwardsNullableAttribute
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->putForwardsNullableAttribute()));
}


#if ENABLE(TEST_FEATURE)
- (void)enabledAtRuntimeOperation:(NSString *)testParam
{
    WebCore::JSMainThreadNullState state;
    IMPL->enabledAtRuntimeOperation(testParam);
}

#endif


#if ENABLE(TEST_FEATURE)
- (void)enabledAtRuntimeOperation:(int)testParam
{
    WebCore::JSMainThreadNullState state;
    IMPL->enabledAtRuntimeOperation(testParam);
}

#endif

- (void)voidMethod
{
    WebCore::JSMainThreadNullState state;
    IMPL->voidMethod();
}

- (void)voidMethodWithArgs:(int)longArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
{
    WebCore::JSMainThreadNullState state;
    if (!objArg)
        WebCore::raiseTypeErrorException();
    IMPL->voidMethodWithArgs(longArg, strArg, *core(objArg));
}

- (char)byteMethod
{
    WebCore::JSMainThreadNullState state;
    return IMPL->byteMethod();
}

- (char)byteMethodWithArgs:(char)byteArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
{
    WebCore::JSMainThreadNullState state;
    if (!objArg)
        WebCore::raiseTypeErrorException();
    return IMPL->byteMethodWithArgs(byteArg, strArg, *core(objArg));
}

- (unsigned char)octetMethod
{
    WebCore::JSMainThreadNullState state;
    return IMPL->octetMethod();
}

- (unsigned char)octetMethodWithArgs:(unsigned char)octetArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
{
    WebCore::JSMainThreadNullState state;
    if (!objArg)
        WebCore::raiseTypeErrorException();
    return IMPL->octetMethodWithArgs(octetArg, strArg, *core(objArg));
}

- (int)longMethod
{
    WebCore::JSMainThreadNullState state;
    return IMPL->longMethod();
}

- (int)longMethodWithArgs:(int)longArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
{
    WebCore::JSMainThreadNullState state;
    if (!objArg)
        WebCore::raiseTypeErrorException();
    return IMPL->longMethodWithArgs(longArg, strArg, *core(objArg));
}

- (DOMTestObj *)objMethod
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->objMethod()));
}

- (DOMTestObj *)objMethodWithArgs:(int)longArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
{
    WebCore::JSMainThreadNullState state;
    if (!objArg)
        WebCore::raiseTypeErrorException();
    return kit(WTF::getPtr(IMPL->objMethodWithArgs(longArg, strArg, *core(objArg))));
}

- (int)unforgeableMethod
{
    WebCore::JSMainThreadNullState state;
    return IMPL->unforgeableMethod();
}

- (void)methodWithArgTreatingNullAsEmptyString:(NSString *)arg
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithArgTreatingNullAsEmptyString(arg);
}

- (void)methodWithXPathNSResolverParameter:(id <DOMXPathNSResolver>)resolver
{
    WebCore::JSMainThreadNullState state;
    if (!resolver)
        WebCore::raiseTypeErrorException();
    WebCore::XPathNSResolver* nativeResolver = 0;
    RefPtr<WebCore::XPathNSResolver> customResolver;
    if (resolver) {
        if ([resolver isMemberOfClass:[DOMNativeXPathNSResolver class]])
            nativeResolver = core(static_cast<DOMNativeXPathNSResolver *>(resolver));
        else {
            customResolver = WebCore::DOMCustomXPathNSResolver::create(resolver);
            nativeResolver = WTF::getPtr(customResolver);
        }
    }
    IMPL->methodWithXPathNSResolverParameter(*WTF::getPtr(nativeResolver));
}

- (NSString *)nullableStringMethod
{
    WebCore::JSMainThreadNullState state;
    return IMPL->nullableStringMethod();
}

- (NSString *)nullableStringStaticMethod
{
    WebCore::JSMainThreadNullState state;
    return IMPL->nullableStringStaticMethod();
}

- (NSString *)nullableStringSpecialMethod:(unsigned)index
{
    WebCore::JSMainThreadNullState state;
    return IMPL->nullableStringSpecialMethod(index);
}

- (void)methodWithEnumArg:(DOMTestEnumType *)enumArg
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithEnumArg(core(enumArg));
}

- (void)methodWithOptionalEnumArg:(DOMTestEnumType *)enumArg
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalEnumArg(core(enumArg));
}

- (void)methodWithOptionalEnumArgAndDefaultValue:(DOMTestEnumType *)enumArg
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalEnumArgAndDefaultValue(core(enumArg));
}

- (DOMTestObj *)methodThatRequiresAllArgsAndThrows:(NSString *)strArg objArg:(DOMTestObj *)objArg
{
    WebCore::JSMainThreadNullState state;
    if (!objArg)
        WebCore::raiseTypeErrorException();
    WebCore::ExceptionCode ec = 0;
    DOMTestObj *result = kit(WTF::getPtr(IMPL->methodThatRequiresAllArgsAndThrows(strArg, *core(objArg), ec)));
    WebCore::raiseOnDOMError(ec);
    return result;
}

- (void)serializedValue:(NSString *)serializedArg
{
    WebCore::JSMainThreadNullState state;
    IMPL->serializedValue(WebCore::SerializedScriptValue::create(WTF::String(serializedArg)));
}

- (void)optionsObject:(DOMDictionary *)oo ooo:(DOMDictionary *)ooo
{
    WebCore::JSMainThreadNullState state;
    IMPL->optionsObject(core(oo), core(ooo));
}

- (void)methodWithException
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    IMPL->methodWithException(ec);
    WebCore::raiseOnDOMError(ec);
}

- (void)methodWithExceptionWithMessage
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithExceptionWithMessage();
}

- (void)customMethod
{
    WebCore::JSMainThreadNullState state;
    IMPL->customMethod();
}

- (void)customMethodWithArgs:(int)longArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
{
    WebCore::JSMainThreadNullState state;
    if (!objArg)
        WebCore::raiseTypeErrorException();
    IMPL->customMethodWithArgs(longArg, strArg, *core(objArg));
}


#if ENABLE(Condition3)
- (void)jsBuiltinMethod
{
    WebCore::JSMainThreadNullState state;
    IMPL->jsBuiltinMethod();
}

#endif


#if ENABLE(Condition3)
- (void)jsBuiltinMethodWithArgs:(int)longArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
{
    WebCore::JSMainThreadNullState state;
    if (!objArg)
        WebCore::raiseTypeErrorException();
    IMPL->jsBuiltinMethodWithArgs(longArg, strArg, *core(objArg));
}

#endif

- (NSString *)publicAndPrivateMethod:(NSString *)argument
{
    WebCore::JSMainThreadNullState state;
    return IMPL->publicAndPrivateMethod(argument);
}

- (void)addEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture
{
    WebCore::JSMainThreadNullState state;
    if (!listener)
        WebCore::raiseTypeErrorException();
    RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap(listener);
    IMPL->addEventListener(type, *WTF::getPtr(nativeEventListener), useCapture);
}

- (void)removeEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture
{
    WebCore::JSMainThreadNullState state;
    if (!listener)
        WebCore::raiseTypeErrorException();
    RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap(listener);
    IMPL->removeEventListener(type, *WTF::getPtr(nativeEventListener), useCapture);
}

- (void)withScriptStateVoid
{
    WebCore::JSMainThreadNullState state;
    IMPL->withScriptStateVoid();
}

- (DOMTestObj *)withScriptStateObj
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->withScriptStateObj()));
}

- (void)withScriptStateVoidException
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    IMPL->withScriptStateVoidException(ec);
    WebCore::raiseOnDOMError(ec);
}

- (DOMTestObj *)withScriptStateObjException
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptStateObjException(ec)));
    WebCore::raiseOnDOMError(ec);
    return result;
}

- (void)withScriptExecutionContext
{
    WebCore::JSMainThreadNullState state;
    IMPL->withScriptExecutionContext();
}

- (void)withScriptExecutionContextAndScriptState
{
    WebCore::JSMainThreadNullState state;
    IMPL->withScriptExecutionContextAndScriptState();
}

- (DOMTestObj *)withScriptExecutionContextAndScriptStateObjException
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateObjException(ec)));
    WebCore::raiseOnDOMError(ec);
    return result;
}

- (DOMTestObj *)withScriptExecutionContextAndScriptStateWithSpaces
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateWithSpaces()));
}

- (void)withScriptArgumentsAndCallStack
{
    WebCore::JSMainThreadNullState state;
    IMPL->withScriptArgumentsAndCallStack();
}

- (void)withDocumentArgument
{
    WebCore::JSMainThreadNullState state;
    IMPL->withDocumentArgument();
}

- (void)withCallerDocumentArgument
{
    WebCore::JSMainThreadNullState state;
    IMPL->withCallerDocumentArgument();
}

- (void)withCallerWindowArgument
{
    WebCore::JSMainThreadNullState state;
    IMPL->withCallerWindowArgument();
}

- (void)methodWithOptionalArg:(int)opt
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalArg(opt);
}

- (void)methodWithOptionalArgAndDefaultValue:(int)opt
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalArgAndDefaultValue(opt);
}

- (void)methodWithNonOptionalArgAndOptionalArg:(int)nonOpt opt:(int)opt
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithNonOptionalArgAndOptionalArg(nonOpt, opt);
}

- (void)methodWithNonOptionalArgAndTwoOptionalArgs:(int)nonOpt opt1:(int)opt1 opt2:(int)opt2
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2);
}

- (void)methodWithOptionalString:(NSString *)str
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalString(str);
}

- (void)methodWithOptionalAtomicString:(NSString *)str
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalAtomicString(str);
}

- (void)methodWithOptionalStringAndDefaultValue:(NSString *)str
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalStringAndDefaultValue(str);
}

- (void)methodWithOptionalAtomicStringAndDefaultValue:(NSString *)str
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalAtomicStringAndDefaultValue(str);
}

- (void)methodWithOptionalStringIsNull:(NSString *)str
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalStringIsNull(str);
}

- (void)methodWithOptionalStringIsUndefined:(NSString *)str
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalStringIsUndefined(str);
}

- (void)methodWithOptionalAtomicStringIsNull:(NSString *)str
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalAtomicStringIsNull(str);
}

- (void)methodWithOptionalStringIsEmptyString:(NSString *)str
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalStringIsEmptyString(str);
}

- (void)methodWithOptionalAtomicStringIsEmptyString:(NSString *)str
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalAtomicStringIsEmptyString(str);
}

- (void)methodWithOptionalDoubleIsNaN:(double)number
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalDoubleIsNaN(number);
}

- (void)methodWithOptionalFloatIsNaN:(float)number
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalFloatIsNaN(number);
}

- (void)methodWithOptionalLongLong:(long long)number
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalLongLong(number);
}

- (void)methodWithOptionalLongLongIsZero:(long long)number
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalLongLongIsZero(number);
}

- (void)methodWithOptionalUnsignedLongLong:(unsigned long long)number
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalUnsignedLongLong(number);
}

- (void)methodWithOptionalUnsignedLongLongIsZero:(unsigned long long)number
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalUnsignedLongLongIsZero(number);
}

- (void)methodWithOptionalBoolean:(BOOL)b
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalBoolean(b);
}

- (void)methodWithOptionalBooleanIsFalse:(BOOL)b
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalBooleanIsFalse(b);
}

- (void)methodWithOptionalAny:(DOMany *)a
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalAny(core(a));
}

- (void)methodWithOptionalNullableWrapper:(DOMTestObj *)obj
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalNullableWrapper(core(obj));
}

- (void)methodWithOptionalNullableWrapperIsNull:(DOMTestObj *)obj
{
    WebCore::JSMainThreadNullState state;
    IMPL->methodWithOptionalNullableWrapperIsNull(core(obj));
}

- (void)methodWithOptionalXPathNSResolver:(id <DOMXPathNSResolver>)resolver
{
    WebCore::JSMainThreadNullState state;
    WebCore::XPathNSResolver* nativeResolver = 0;
    RefPtr<WebCore::XPathNSResolver> customResolver;
    if (resolver) {
        if ([resolver isMemberOfClass:[DOMNativeXPathNSResolver class]])
            nativeResolver = core(static_cast<DOMNativeXPathNSResolver *>(resolver));
        else {
            customResolver = WebCore::DOMCustomXPathNSResolver::create(resolver);
            nativeResolver = WTF::getPtr(customResolver);
        }
    }
    IMPL->methodWithOptionalXPathNSResolver(WTF::getPtr(nativeResolver));
}


#if ENABLE(Condition1)
- (NSString *)conditionalMethod1
{
    WebCore::JSMainThreadNullState state;
    return IMPL->conditionalMethod1();
}

#endif


#if ENABLE(Condition1) && ENABLE(Condition2)
- (void)conditionalMethod2
{
    WebCore::JSMainThreadNullState state;
    IMPL->conditionalMethod2();
}

#endif


#if ENABLE(Condition1) || ENABLE(Condition2)
- (void)conditionalMethod3
{
    WebCore::JSMainThreadNullState state;
    IMPL->conditionalMethod3();
}

#endif

- (void)classMethod
{
    WebCore::JSMainThreadNullState state;
    IMPL->classMethod();
}

- (int)classMethodWithOptional:(int)arg
{
    WebCore::JSMainThreadNullState state;
    return IMPL->classMethodWithOptional(arg);
}

- (void)classMethod2:(int)arg
{
    WebCore::JSMainThreadNullState state;
    IMPL->classMethod2(arg);
}


#if ENABLE(Condition1)
- (void)overloadedMethod1:(int)arg
{
    WebCore::JSMainThreadNullState state;
    IMPL->overloadedMethod1(arg);
}

#endif


#if ENABLE(Condition1)
- (void)overloadedMethod1:(NSString *)type
{
    WebCore::JSMainThreadNullState state;
    IMPL->overloadedMethod1(type);
}

#endif

- (void)classMethodWithEnforceRange:(unsigned short)objArgsShort objArgsLong:(unsigned)objArgsLong
{
    WebCore::JSMainThreadNullState state;
    IMPL->classMethodWithEnforceRange(objArgsShort, objArgsLong);
}

- (DOMSVGDocument *)getSVGDocument
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    DOMSVGDocument *result = kit(WTF::getPtr(IMPL->getSVGDocument(ec)));
    WebCore::raiseOnDOMError(ec);
    return result;
}

- (void)convert1:(DOMTestNode *)value
{
    WebCore::JSMainThreadNullState state;
    if (!value)
        WebCore::raiseTypeErrorException();
    IMPL->convert1(*core(value));
}

- (void)convert2:(DOMTestNode *)value
{
    WebCore::JSMainThreadNullState state;
    IMPL->convert2(core(value));
}

- (void)convert3:(NSString *)value
{
    WebCore::JSMainThreadNullState state;
    IMPL->convert3(value);
}

- (void)convert4:(NSString *)value
{
    WebCore::JSMainThreadNullState state;
    IMPL->convert4(value);
}

- (DOMSVGPoint *)mutablePointFunction
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->mutablePointFunction()));
}

- (DOMSVGPoint *)immutablePointFunction
{
    WebCore::JSMainThreadNullState state;
    return kit(WTF::getPtr(IMPL->immutablePointFunction()));
}

- (void)orange
{
    WebCore::JSMainThreadNullState state;
    IMPL->banana();
}

- (BOOL)strictFunction:(NSString *)str a:(float)a b:(int)b
{
    WebCore::JSMainThreadNullState state;
    WebCore::ExceptionCode ec = 0;
    BOOL result = IMPL->strictFunction(str, a, b, ec);
    WebCore::raiseOnDOMError(ec);
    return result;
}

- (void)any:(float)a b:(int)b
{
    WebCore::JSMainThreadNullState state;
    IMPL->any(a, b);
}

- (void)attachShadowRoot:(DOMTestDictionary *)init
{
    WebCore::JSMainThreadNullState state;
    IMPL->attachShadowRoot(core(init));
}

@end

WebCore::TestObj* core(DOMTestObj *wrapper)
{
    return wrapper ? reinterpret_cast<WebCore::TestObj*>(wrapper->_internal) : 0;
}

DOMTestObj *kit(WebCore::TestObj* value)
{
    WebCoreThreadViolationCheckRoundOne();
    if (!value)
        return nil;
    if (DOMTestObj *wrapper = getDOMWrapper(value))
        return [[wrapper retain] autorelease];
    DOMTestObj *wrapper = [[DOMTestObj alloc] _init];
    wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value);
    value->ref();
    addDOMWrapper(wrapper, value);
    return [wrapper autorelease];
}