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);
    
    }
    
    
  • 相关阅读:
    IOS Xcode编译项目-报错“ld: library not found for -XX”
    ios中关键词weak,assign,copy.strong等的区别
    iOS 控件
    iOS图片处理
    iOS 音频
    C语言文件操作
    iOS 删除相册中照片--来自简书
    ios sourecTree
    ios音频处理
    编码格式简介
  • 原文地址:https://www.cnblogs.com/Fandyx/p/1893440.html
Copyright © 2011-2022 走看看