示例#1
0
        internal override void SetHeader(string strHeader)
        {
            this.Header = strHeader;
            var items = DCILDocument.SplitByWhitespace(strHeader);

            for (int itemCount = 0; itemCount < items.Count; itemCount++)
            {
                if (items[itemCount] == "extends" && itemCount > 0)
                {
                    this.Name         = items[itemCount - 1];
                    this.BaseTypeName = items[itemCount + 1];
                    return;
                }
            }
            this.Name = items[items.Count - 1];

            this.IsInterface = items.Contains("interface");
            this.IsPublic    = items.Contains("public");
            int index2 = items.IndexOf("implements");

            if (index2 > 0)
            {
                this.ImplementsInterfaces = new List <string>();
                for (int iCount = index2; iCount < items.Count; iCount++)
                {
                    this.ImplementsInterfaces.Add(items[iCount]);
                }
            }
            //if (strHeader.Contains("WriterControl") && this.IsPublic == false )
            //{

            //}
        }
示例#2
0
        internal override void SetHeader(string strHeader)
        {
            this.Header = strHeader;

            var words = DCILDocument.SplitByWhitespace(DCILDocument.RemoveChars(strHeader, "()"));

            this.Name          = words[words.Count - 1];
            this.ValueTypeName = words[words.Count - 2];
        }
示例#3
0
        internal override void SetHeader(string strHeader)
        {
            this.Header = strHeader;
            var items = DCILDocument.SplitByWhitespace(strHeader);

            for (int itemCount = 0; itemCount < items.Count; itemCount++)
            {
                var item    = items[itemCount];
                int index10 = item.IndexOf('(');
                if (index10 > 0)
                {
                    this.Name       = item.Substring(0, index10);
                    this.ReturnType = items[itemCount - 1];
                    //currentMethodName = group.Name;
                    break;
                }
            }
        }