Ejemplo n.º 1
0
        private static ConstructorInfo FindConstructor(String className, Type[] parameterTypes)
        {
            TypographyUtils.TypographyMethodSignature tc = new TypographyUtils.TypographyMethodSignature(className, parameterTypes
                                                                                                         );
            ConstructorInfo c = (ConstructorInfo)cachedMethods.Get(tc);

            if (c == null)
            {
                c = FindClass(className).GetConstructor(parameterTypes);
                cachedMethods.Put(tc, c);
            }
            return(c);
        }
Ejemplo n.º 2
0
        private static MethodInfo FindMethod(String className, String methodName, Type[] parameterTypes)
        {
            TypographyUtils.TypographyMethodSignature tm = new TypographyUtils.TypographyMethodSignature(className, parameterTypes
                                                                                                         , methodName);
            MethodInfo m = (MethodInfo)cachedMethods.Get(tm);

            if (m == null)
            {
                m = FindClass(className).GetMethod(methodName, parameterTypes);
                cachedMethods.Put(tm, m);
            }
            return(m);
        }
Ejemplo n.º 3
0
 public override bool Equals(Object o)
 {
     if (this == o)
     {
         return(true);
     }
     if (o == null || GetType() != o.GetType())
     {
         return(false);
     }
     TypographyUtils.TypographyMethodSignature that = (TypographyUtils.TypographyMethodSignature)o;
     if (!className.Equals(that.className))
     {
         return(false);
     }
     if (!JavaUtil.ArraysEquals(parameterTypes, that.parameterTypes))
     {
         return(false);
     }
     return(methodName != null?methodName.Equals(that.methodName) : that.methodName == null);
 }