⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 idlfile.java

📁 UCS (Ultra Corba Simulator) is one more powerful corba client/servant simulator tool than other simi
💻 JAVA
字号:
package com.corba.mnq.tool.idl;

import com.corba.mnq.tool.BNFTool;
import com.corba.mnq.tool.EtcProperties;
import com.corba.mnq.tool.GetEtcTool;
import com.corba.mnq.tool.LoggerTool;

import java.util.logging.Logger;

public class IdlFile extends IdlBase {

    public String contentNoComment = "";

    public IdlFile() {
        super();
        // TODO Auto-generated constructor stub
    }

    // Whether to parse idl quickly, and make the idl browser in "no
    // comments" mode for sub node
    public static boolean deleteComments = false;

    private static EtcProperties props;

    static {
        props = GetEtcTool.getProperties();
        deleteComments = props.getProperty("CorbaMNQ.idl.deletecomments", "false")
                .equalsIgnoreCase("true");
    }

    /** used for java.util.logging */
    private static final Logger LOG = Logger.getLogger(IdlFile.class.getName());

    public void recurContent() {
        // in order to make the position of the idl files more easily.
        String res;
        if (deleteComments) {
            res = BNFTool.removeComments(content);
        } else {
            res = BNFTool.changeComments(content);
        }
        contentNoComment = res;
        res = BNFTool.findModule(res, sibling, "", this);
        res = BNFTool.findInterface(res, sibling, "", this);
        res = BNFTool.findTypes(res, sibling, cName, this);
        res = BNFTool.findExceptions(res, sibling, cName, this);
        res = BNFTool.findConst(res, sibling, cName, this);

        // System.out.println(cName + res);
        LoggerTool.checkRemainedContent(LOG, res, this);

        for (int i = 0; i < sibling.size(); i++) {
            IdlBase sib = (IdlBase) sibling.get(i);
            sib.recurContent();
        }
    };

    public String getIconName() {
        return "file.gif";
    }

    /**
     * @param args
     */
    public static void main_(String[] args) {
        // TODO Auto-generated method stub

    }

}
/* EOF */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -