Exemple #1
0
 public virtual bool HasZProcDesc(ZCMethodDesc zdesc)
 {
     foreach (ZLMethodDesc item in ZDescs)
     {
         if (ZDescUtil.ZEqualsDesc(item, zdesc))//)item.ZEquals(procDesc))
         {
             return(true);
         }
     }
     return(false);
 }
Exemple #2
0
        public ZCMethodInfo[] SearchDeclaredZMethod(ZCMethodDesc zdesc)
        {
            List <ZCMethodInfo> methods = new List <ZCMethodInfo>();
            var ZMethods = this._ZCompilingMethods;

            foreach (ZCMethodInfo item in ZMethods)
            {
                if (item.HasZProcDesc(zdesc))
                {
                    methods.Add(item);
                }
            }
            return(methods.ToArray());
        }
Exemple #3
0
        public ZLMethodInfo[] SearchDeclaredZMethod(ZCMethodDesc zcall)
        {
            List <ZLMethodInfo> methods = new List <ZLMethodInfo>();
            var ZMethods = this.ZMethods;

            foreach (var item in ZMethods)
            {
                if (item.HasZProcDesc(zcall))
                {
                    methods.Add(item);
                }
            }
            return(methods.ToArray());
        }
Exemple #4
0
        public ZLMethodInfo[] SearchZMethod(ZCMethodDesc zdesc)
        {
            ZLClassInfo temp = this;

            while (temp != null)
            {
                ZLMethodInfo[] zmethods = temp.SearchDeclaredZMethod(zdesc);
                if (zmethods.Length > 0)
                {
                    return(zmethods);
                }
                else
                {
                    temp = temp.BaseZClass;
                }
            }
            return(new ZLMethodInfo[] { });
        }
Exemple #5
0
 public ZCMethodInfo(ZCClassInfo zcclass, bool isStatic)
 {
     ZClass      = zcclass;
     IsStatic    = isStatic;
     ZMethodDesc = new ZCMethodDesc(this);
 }
Exemple #6
0
 public ZCMethodInfo(ZCClassInfo zcclass)
 {
     ZClass      = zcclass;
     ZMethodDesc = new ZCMethodDesc(this);
 }
Exemple #7
0
 public bool HasZProcDesc(ZCMethodDesc procDesc)
 {
     return(ZDescUtil.ZEqualsDesc(ZMethodDesc, procDesc)); //return ZMethodDesc.ZEquals(procDesc);
 }