示例#1
0
        public virtual PrimitiveConstant GetPrimitiveConstant(int index)
        {
            PrimitiveConstant cn = (PrimitiveConstant)GetConstant(index);

            if (cn != null && interceptor != null)
            {
                if (cn.type == ICodeConstants.CONSTANT_Class)
                {
                    string newName = BuildNewClassname(cn.GetString());
                    if (newName != null)
                    {
                        cn = new PrimitiveConstant(ICodeConstants.CONSTANT_Class, newName);
                    }
                }
            }
            return(cn);
        }