public virtual global::System.Object getConstructors() { //XMLVM_BEGIN_WRAPPER[java.lang.Class: java.lang.reflect.Constructor[] getConstructors()] org.xmlvm._nTIB tib = (org.xmlvm._nTIB) this._ftib; global::System.Type nativeType = tib.getNativeType(); global::System.Reflection.BindingFlags bindingFlags = global::System.Reflection.BindingFlags.DeclaredOnly // | global::System.Reflection.BindingFlags.Static | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic; global::System.Reflection.MemberInfo[] constructorInfos = nativeType.FindMembers(global::System.Reflection.MemberTypes.Method, bindingFlags, global::System.Type.FilterNameIgnoreCase, "this"); global::System.Collections.Generic.IList <java.lang.reflect.Constructor> jConstructors = new global::System.Collections.Generic.List <java.lang.reflect.Constructor>(); // note each MemberInfo is casted to MethodInfo: foreach (global::System.Reflection.MethodInfo constructorInfo in constructorInfos) { java.lang.reflect.Constructor jConstructor = org.xmlvm._nMemberInfoAdapter <global::System.Reflection.MethodInfo, java.lang.reflect.Constructor._nImpl> .getJavaClient(constructorInfo); jConstructors.Add(jConstructor); } java.lang.reflect.Constructor[] jConstructorArray = new java.lang.reflect.Constructor[jConstructors.Count]; jConstructors.CopyTo(jConstructorArray, 0); return(new org.xmlvm._nArrayAdapter <object>(jConstructorArray)); //XMLVM_END_WRAPPER[java.lang.Class: java.lang.reflect.Constructor[] getConstructors()] }
public virtual global::System.Object getFields() { //XMLVM_BEGIN_WRAPPER[java.lang.Class: java.lang.reflect.Field[] getFields()] org.xmlvm._nTIB tib = (org.xmlvm._nTIB) this._ftib; global::System.Type nativeType = tib.getNativeType(); global::System.Reflection.BindingFlags bindingFlags = global::System.Reflection.BindingFlags.Static | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic; global::System.Reflection.FieldInfo[] fieldInfos = nativeType.GetFields(bindingFlags); java.lang.reflect.Field[] jFields = new java.lang.reflect.Field[fieldInfos.Length]; for (int i = 0; i < fieldInfos.Length; i++) { global::System.Reflection.FieldInfo fieldInfo = fieldInfos[i]; java.lang.reflect.Field jField = org.xmlvm._nMemberInfoAdapter <global::System.Reflection.FieldInfo, java.lang.reflect.Field._nImpl> .getJavaClient(fieldInfo); jFields[i] = jField; } return(new org.xmlvm._nArrayAdapter <object>(jFields)); throw new org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented"); //XMLVM_END_WRAPPER[java.lang.Class: java.lang.reflect.Field[] getFields()] }
public virtual global::System.Object getDeclaredMethods() { //XMLVM_BEGIN_WRAPPER[java.lang.Class: java.lang.reflect.Method[] getDeclaredMethods()] org.xmlvm._nTIB tib = (org.xmlvm._nTIB) this._ftib; global::System.Type nativeType = tib.getNativeType(); global::System.Reflection.BindingFlags bindingFlags = global::System.Reflection.BindingFlags.DeclaredOnly | global::System.Reflection.BindingFlags.Static | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic; global::System.Reflection.MethodInfo[] methodInfos = nativeType.GetMethods(bindingFlags); global::System.Collections.Generic.IList <java.lang.reflect.Method> jMethods = new global::System.Collections.Generic.List <java.lang.reflect.Method>(); foreach (global::System.Reflection.MethodInfo nativeMethodInfo in methodInfos) { java.lang.reflect.Method jMethod = org.xmlvm._nMemberInfoAdapter <global::System.Reflection.MethodInfo, java.lang.reflect.Method._nImpl> .getJavaClient(nativeMethodInfo); jMethods.Add(jMethod); } java.lang.reflect.Method[] jMethodArray = new java.lang.reflect.Method[jMethods.Count]; jMethods.CopyTo(jMethodArray, 0); return(new org.xmlvm._nArrayAdapter <object>(jMethodArray)); //XMLVM_END_WRAPPER[java.lang.Class: java.lang.reflect.Method[] getDeclaredMethods()] }
public virtual bool isInterface() { //XMLVM_BEGIN_WRAPPER[java.lang.Class: boolean isInterface()] org.xmlvm._nTIB myTib = (org.xmlvm._nTIB) this._ftib; global::System.Type myNativeType = myTib.getNativeType(); return(myNativeType.IsInterface); //XMLVM_END_WRAPPER[java.lang.Class: boolean isInterface()] }
public virtual bool isAssignableFrom(global::java.lang.Class n1) { //XMLVM_BEGIN_WRAPPER[java.lang.Class: boolean isAssignableFrom(java.lang.Class)] org.xmlvm._nTIB myTib = (org.xmlvm._nTIB) this._ftib; org.xmlvm._nTIB otherTib = (org.xmlvm._nTIB)n1._ftib; global::System.Type myNativeType = myTib.getNativeType(); global::System.Type otherNativeType = otherTib.getNativeType(); return(myNativeType.IsAssignableFrom(otherNativeType)); //XMLVM_END_WRAPPER[java.lang.Class: boolean isAssignableFrom(java.lang.Class)] }
public virtual global::System.Object getSuperclass() { //XMLVM_BEGIN_WRAPPER[java.lang.Class: java.lang.Class getSuperclass()] org.xmlvm._nTIB myTib = (org.xmlvm._nTIB) this._ftib; global::System.Type myNativeType = myTib.getNativeType(); global::System.Type nativeBaseType = myNativeType.BaseType; java.lang.Class javaSuperClass = org.xmlvm._nTIB.getClass(nativeBaseType); return(javaSuperClass); //XMLVM_END_WRAPPER[java.lang.Class: java.lang.Class getSuperclass()] }
public virtual global::System.Object newInstance() { //XMLVM_BEGIN_WRAPPER[java.lang.Class: java.lang.Object newInstance()] org.xmlvm._nTIB tib = (org.xmlvm._nTIB) this._ftib; global::System.Type nativeType = tib.getNativeType(); global::System.Object obj = global::System.Activator.CreateInstance(nativeType); global::System.Reflection.MethodInfo jConstructor = nativeType.GetMethod("this", new global::System.Type[] {}); jConstructor.Invoke(obj, new object[] {}); return(obj); //XMLVM_END_WRAPPER[java.lang.Class: java.lang.Object newInstance()] }
public static global::System.Object forName(global::java.lang.String n1, bool n2, global::java.lang.ClassLoader n3) { //XMLVM_BEGIN_WRAPPER[java.lang.Class: java.lang.Class forName(java.lang.String, boolean, java.lang.ClassLoader)] org.xmlvm._nTIB myTIB = org.xmlvm._nTIB.javaTypeNameToTIB(n1); Class result = myTIB.getClass(); if (result == null) { result = new Class(); result.@this(myTIB); myTIB.setClass(result); } return(result); //XMLVM_END_WRAPPER[java.lang.Class: java.lang.Class forName(java.lang.String, boolean, java.lang.ClassLoader)] }