internal static bool TryLoadCommonElement(this JavaType type, XmlReader reader)
 {
     if (reader.LocalName == "implements")
     {
         var implements = new JavaImplements();
         implements.Load(reader);
         type.Implements.Add(implements);
     }
     else if (reader.LocalName == "typeParameters")
     {
         var tp = new JavaTypeParameters(type);
         tp.Load(reader);
         type.TypeParameters = tp;
     }
     else if (reader.LocalName == "field")
     {
         var field = new JavaField(type);
         field.Load(reader);
         type.Members.Add(field);
     }
     else if (reader.LocalName == "method")
     {
         var method = new JavaMethod(type);
         method.Load(reader);
         type.Members.Add(method);
     }
     else
     {
         return(false);
     }
     return(true);
 }
 public static void Load(this JavaImplements implements, XmlReader reader)
 {
     implements.Name            = XmlUtil.GetRequiredAttribute(reader, "name");
     implements.NameGeneric     = XmlUtil.GetRequiredAttribute(reader, "name-generic-aware");
     implements.ExtendedJniType = reader.GetAttribute("jni-type");
     XmlUtil.CheckExtraneousAttributes(reader.LocalName, reader, "name", "name-generic-aware", "jni-type");
     if (!reader.IsEmptyElement)
     {
         reader.Read();
         reader.MoveToContent();
         XmlUtil.VerifyEndElement(reader, "implements");
     }
     reader.Read();
 }