protected internal override void InitPrototypeId(int id)
{
string s;
int arity;
switch (id)
{
case Id_constructor:
{
IdFunctionObject ctor;
if (this is XML)
{
ctor = new XMLCtor((XML)this, XMLOBJECT_TAG, id, 1);
}
else
{
ctor = new IdFunctionObject(this, XMLOBJECT_TAG, id, 1);
}
InitPrototypeConstructor(ctor);
return;
}
case Id_addNamespace:
{
arity = 1;
s = "addNamespace";
break;
}
case Id_appendChild:
{
arity = 1;
s = "appendChild";
break;
}
case Id_attribute:
{
arity = 1;
s = "attribute";
break;
}
case Id_attributes:
{
arity = 0;
s = "attributes";
break;
}
case Id_child:
{
arity = 1;
s = "child";
break;
}
case Id_childIndex:
{
arity = 0;
s = "childIndex";
break;
}
case Id_children:
{
arity = 0;
s = "children";
break;
}
case Id_comments:
{
arity = 0;
s = "comments";
break;
}
case Id_contains:
{
arity = 1;
s = "contains";
break;
}
case Id_copy:
{
arity = 0;
s = "copy";
break;
}
case Id_descendants:
{
arity = 1;
s = "descendants";
break;
}
case Id_elements:
{
arity = 1;
s = "elements";
break;
}
case Id_hasComplexContent:
{
arity = 0;
s = "hasComplexContent";
break;
}
case Id_hasOwnProperty:
{
arity = 1;
s = "hasOwnProperty";
break;
}
case Id_hasSimpleContent:
{
arity = 0;
s = "hasSimpleContent";
break;
}
case Id_inScopeNamespaces:
{
arity = 0;
s = "inScopeNamespaces";
break;
}
case Id_insertChildAfter:
{
arity = 2;
s = "insertChildAfter";
break;
}
case Id_insertChildBefore:
{
arity = 2;
s = "insertChildBefore";
break;
}
case Id_length:
{
arity = 0;
s = "length";
break;
}
case Id_localName:
{
arity = 0;
s = "localName";
break;
}
case Id_name:
{
arity = 0;
s = "name";
break;
}
case Id_namespace:
{
arity = 1;
s = "namespace";
break;
}
case Id_namespaceDeclarations:
{
arity = 0;
s = "namespaceDeclarations";
break;
}
case Id_nodeKind:
{
arity = 0;
s = "nodeKind";
break;
}
case Id_normalize:
{
arity = 0;
s = "normalize";
break;
}
case Id_parent:
{
arity = 0;
s = "parent";
break;
}
case Id_prependChild:
{
arity = 1;
s = "prependChild";
break;
}
case Id_processingInstructions:
{
arity = 1;
s = "processingInstructions";
break;
}
case Id_propertyIsEnumerable:
{
arity = 1;
s = "propertyIsEnumerable";
break;
}
case Id_removeNamespace:
{
arity = 1;
s = "removeNamespace";
break;
}
case Id_replace:
{
arity = 2;
s = "replace";
break;
}
case Id_setChildren:
{
arity = 1;
s = "setChildren";
break;
}
case Id_setLocalName:
{
arity = 1;
s = "setLocalName";
break;
}
case Id_setName:
{
arity = 1;
s = "setName";
break;
}
case Id_setNamespace:
{
arity = 1;
s = "setNamespace";
break;
}
case Id_text:
{
arity = 0;
s = "text";
break;
}
case Id_toString:
{
arity = 0;
s = "toString";
break;
}
case Id_toSource:
{
arity = 1;
s = "toSource";
break;
}
case Id_toXMLString:
{
arity = 1;
s = "toXMLString";
break;
}
case Id_valueOf:
{
arity = 0;
s = "valueOf";
break;
}
default:
{
throw new ArgumentException(id.ToString());
}
}
InitPrototypeMethod(XMLOBJECT_TAG, id, s, arity);
}