zoukankan      html  css  js  c++  java
  • Using X++ Code export to methods list of Class

    static void Jimmy_ClassMethodsExport()
    {
    /***
        wrote by Jimmy on DEV. 1th 2010
        SysDictClass :
            get AOT Class infomation
        TextBuffer :
            test wrote data to excel file.
        match:
            An expression followed by an asterisk requires a match for none, one,
        or more occurrences of the preceding expression.
    */
        SysDictClass        sysDictClass;
        Set                 setList;
        SetEnumerator       setEnum;
        str                 methodName;
        TextBuffer          text;
        #define.matchKeyword('g*')
    ;
        // Object Initialization
        sysDictClass     = new SysDictClass(classnum(Info));
        setList          = new Set(Types::String);
        text             = new TextBuffer();
      
        setList = sysDictClass.objectMethodSet(true);//true is include Inherited class's Methods,false only inlude current classs's methods
        setEnum = setList.getEnumerator();
    
        while (setEnum.moveNext())
        {
            if(match(#matchKeyword, setEnum.current())) // match p* prefix methods
            {
                //methodName = strrem(setEnum.current(), '["]');
                methodName = setEnum.current();
                text.appendText(methodName + '\n');
            }
        }
        if(WinAPI::fileExists(@'C:\MethodNames.xls'))
            WINAPI::deleteFile(@'C:\MethodNames.xls');
            
        text.toFile(@'C:\MethodNames.xls', FileEncoding::UTF8);
    
    }
    
    
  • 相关阅读:
    查询计划Hash和查询Hash
    执行计划的重用
    执行计划组件、组件、老化
    执行计划的生成
    查询反模式
    T-SQL 公用表表达式(CTE)
    SQL 操作结果集 -并集、差集、交集、结果集排序
    SQL语句
    POJ 1821 单调队列+dp
    区间gcd问题 HDU 5869 离线+树状数组
  • 原文地址:https://www.cnblogs.com/Fandyx/p/1893440.html
Copyright © 2011-2022 走看看