Package ch.grengine.source

Examples of ch.grengine.source.UrlSource


            return cu.addSource(textSource.getId(), textSource.getText());
        } else if (source instanceof FileSource) {
            FileSource fileSource = (FileSource)source;
            return cu.addSource(fileSource.getFile());
        } else if (source instanceof UrlSource) {
            UrlSource urlSource = (UrlSource)source;
            return cu.addSource(urlSource.getUrl());
        } else {
            throw new CompileException("Don't know how to compile source " + source + ".", sources);
        }
    }
View Full Code Here

TOP

Related Classes of ch.grengine.source.UrlSource

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.