Package net.sf.jmd.transformation

Examples of net.sf.jmd.transformation.IParser


    public IModel transform(List<File> modelFileList) throws MoDiException {
        IModel result = new Model();
        IModelItem item = null;

        IParser joda = new JavaParser();
        ITreeWalker luke = new ASTtoMetaRepresentationTransformer();
       
        for (File file : modelFileList) {
            //TODO remove debug
//           LOGGER.info("parsing file: " + file.getAbsolutePath());
            AST ast = joda.getAST(file);// parse the file
            item = luke.walk(ast); // build a ModelItem from the AST
            result.addModelItem(item); // add it to the model
        }
       
        return result;
View Full Code Here


    public IModel transform(List<File> modelFileList) throws MoDiException {
        IModel result = new Model();
        IModelItem item = null;

        IParser joda = new JavaParser();
        ITreeWalker luke = new ASTtoMetaRepresentationTransformer();
       
        for (File file : modelFileList) {
            //TODO remove debug
//           LOGGER.info("parsing file: " + file.getAbsolutePath());
            AST ast = joda.getAST(file);// parse the file
            item = luke.walk(ast); // build a ModelItem from the AST
            result.addModelItem(item); // add it to the model
        }
       
        return result;
View Full Code Here

TOP

Related Classes of net.sf.jmd.transformation.IParser

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.