Package com4j

Examples of com4j.GUID


                name = aliases.get(decl);
            else
                name = decl.getName();

            // check GUID
            GUID guid = getGUID(decl);

            if(guid!=null && STDOLE_TYPES.contains(guid))
                return "Com4jObject";
            else
                return name;
View Full Code Here


*/
final class DefaultMethodFinder {
    private final Map<GUID,IMethod> cache = new HashMap<GUID,IMethod>();

    public IMethod getDefaultMethod(IInterface intf) {
        GUID guid = intf.getGUID();
        if(cache.containsKey(guid))
            return cache.get(guid);

        IMethod r = doGetDefaultMethod(intf);
        cache.put(guid,r);
View Full Code Here

            libsToGen.add(COM4J.loadTypeLibrary(lib.getFile()).queryInterface(IWTypeLib.class));
        }

        ReferenceResolver resolver = new ReferenceResolver() {
            public String resolve(IWTypeLib lib) {
                GUID libid = lib.getLibid();
                if( libs.containsKey(libid) ) {
                    String pkg = libs.get(libid).getPackage();
                    if(pkg!=null)
                        return pkg;
                }

                // TODO: move this to a filter
                if( libid.equals(GUID_STDOLE))
                    return ""// don't generate STDOLE. That's replaced by com4j runtime.

                if( libsToGen.add(lib) )
                    el.warning(Messages.REFERENCED_TYPELIB_GENERATED.format(lib.getName(),packageName));

                return packageName;
            }

            public boolean suppress(IWTypeLib lib) {
                GUID libid = lib.getLibid();

                if( libid.equals(GUID_STDOLE))
                    return true;

                Lib r = libs.get(libid);
                if(r!=null)
                    return r.suppress();
View Full Code Here

                System.err.println(Messages.CANT_SPECIFY_LIBID_AND_FILENAME);
                usage();
                return -1;
            }
            try {
                TypeLibInfo tli = TypeLibInfo.locate(new GUID(libid),libVersion);
                if(verbose)
                    System.err.printf("Found %1s <%2s>\n",tli.libName,tli.version);

                files = Arrays.asList(tli.typeLibrary.toString());
            } catch( BindingException e ) {
View Full Code Here

    public void setFile(File source) {
        this.source = source;
    }

    public void setLibid(String libid) {
        this.libid = new GUID(libid);
    }
View Full Code Here

     * (It's assumed to be present somewhere else already.)
     */
    private boolean suppress = false;

    public void setLibid(String libid) {
        this.libid = new GUID(libid);
    }
View Full Code Here

TOP

Related Classes of com4j.GUID

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.