Package com4j.tlbimp.def

Examples of com4j.tlbimp.def.IWTypeLib


        /**
         * Generates all the code from this type library.
         */
        public void generate() throws IOException {
            IWTypeLib tlib = lib;
            generatePackageHtml();

            int len = tlib.count();
            // generate event interface first,
            // so that we don't generate same interface as invocable ones.
            for( int i=0; i<len; i++ ) {
                ITypeDecl t = tlib.getType(i);
                if(t.getKind()== TypeKind.COCLASS) {
                    generateEventsFrom( t.queryInterface(ICoClassDecl.class) );
                }
            }

            for( int i=0; i<len; i++ ) {
                ITypeDecl t = tlib.getType(i);
                switch(t.getKind()) {
                case DISPATCH:
                    generate( t.queryInterface(IDispInterfaceDecl.class) );
                    break;
                case INTERFACE:
View Full Code Here


        return suppress;
    }

    public GUID getLibid() {
        if(libid==null) {
            IWTypeLib tlb = COM4J.loadTypeLibrary(file).queryInterface(IWTypeLib.class);
            libid = tlb.getLibid();
            tlb.dispose();
        }
        return libid;
    }
View Full Code Here

TOP

Related Classes of com4j.tlbimp.def.IWTypeLib

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.