Beispiel #1
0
 /// <summary>
 /// Return the constructor
 /// </summary>
 /// <param name="name"></param>
 /// <param name="paramTypes"></param>
 /// <returns></returns>
 public java.lang.reflect.Constructor getConstructor(Class[] paramTypes)
 {
     Type[] pTypes = new Type[paramTypes.Length];
     for (int i = 0; i < paramTypes.Length; i++)
     {
         pTypes[i] = paramTypes[i].delegateInstance;
     }
     return this.getConstructor(pTypes);
 }
Beispiel #2
0
 /// <summary>
 /// Return the method
 /// </summary>
 /// <param name="name"></param>
 /// <param name="paramTypes"></param>
 /// <returns></returns>
 public java.lang.reflect.Method getMethod(String name, Class[] paramTypes)
 {
     Type[] pTypes = new Type[paramTypes.Length];
     for (int i = 0; i < paramTypes.Length; i++)
     {
         pTypes[i] = paramTypes[i].delegateInstance;
     }
     return this.getMethod(name, pTypes);
 }
Beispiel #3
0
 public Class[] getInterfaces()
 {
     Type[] types = this.delegateInstance.GetInterfaces ();
     Class[] result = new Class[types.Length];
     for (int i = 0; i < types.Length; i++) {
         result [i] = new Class (types [i]);
     }
     return result;
 }
Beispiel #4
0
 public bool isAssignableFrom(Class c)
 {
     return this.delegateInstance.IsAssignableFrom(c.delegateInstance);
 }
Beispiel #5
0
 internal Package(Class cl)
 {
     String package = cl.delegateInstance.Namespace;
 }