Package net.sf.laja.parser.cdd.behaviour.constructor

Examples of net.sf.laja.parser.cdd.behaviour.constructor.ConstructorParser$IConstructor


        return behaviour;
    }

    public Constructor parseConstructor(final String filePath) {
        ConstructorParser parser = new ConstructorParser(new ConstructorParser.IConstructorFactoryFactory() {
            public ConstructorParser.IConstructorFactory getFactory(int phase) {
                return new ConstructorFactory();
            }
        });

        ParsingResult result = parser.parse(new FileSource(filePath));

        if (!result.success()) {
            return null;
        }

        ConstructorFactory constructorFactory = (ConstructorFactory)parser.getFactory();
        Constructor constructor = constructorFactory.getConstructor();

        return constructor;
    }
View Full Code Here

TOP

Related Classes of net.sf.laja.parser.cdd.behaviour.constructor.ConstructorParser$IConstructor

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.