示例#1
0
        public bool isFinalMethod(WrapperGenerator generator, WrapMethod method)
        {
            //Find method name
            WrapMethod matchMethod = findMethod(method.name);

            if (matchMethod != null)
            {
                if (matchMethod == method)
                {
                    return(true);
                }

                if (matchMethod.name == method.name)
                {
                    return(false);
                }
            }

            //Check parent
            if (!String.IsNullOrEmpty(this.parentClass))
            {
                WrapClass parentClass = generator.findClass(this.parentClass);
                if (parentClass != null)
                {
                    return(parentClass.isFinalMethod(generator, method));
                }
            }

            //Return
            return(false);
        }
示例#2
0
        public bool hasVirtualMethods(WrapperGenerator generator)
        {
            //Do we have virtual methods
            foreach (WrapMethod wrapMethod in methods)
            {
                if (wrapMethod.isVirtual)
                {
                    return(true);
                }
            }

            //Check our parents
            if (!String.IsNullOrEmpty(parentClass))
            {
                WrapClass parent = generator.findClass(this.parentClass);
                return(parent.hasVirtualMethods(generator));
            }
            else
            {
                return(false);
            }
        }