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);
    
    }
    
    
  • 相关阅读:
    Git使用教程与基本原理和Sourcetree基本使用探微
    微博开发笔记上(未完待续)
    Swift入门
    刀哥之指纹识别biometrics
    iOS面试关于http知识点basic-01-http
    SDWebImageInfo
    runloop
    NSOperation类
    java多线程
    java集合类(二)
  • 原文地址:https://www.cnblogs.com/Fandyx/p/1893440.html
Copyright © 2011-2022 走看看