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

Examples of net.sf.laja.parser.cdd.behaviour.constructor.Importstatement


    @Test
    public void containsStatement_exists() {
        final String statement = "a.b.c";

        Imports imports = new Imports();
        Importstatement importstatement = new Importstatement();
        importstatement.setFullclassname(statement);
        imports.addImportstatement(importstatement);

        assertTrue(imports.containsStatement(statement));
    }
View Full Code Here


    private Imports createImports(String... fullclassnames) {
        Imports imports = new Imports();

        for (String fullclassname : fullclassnames) {
            Importstatement importstatement = new Importstatement();
            importstatement.setFullclassname(fullclassname);
            imports.addImportstatement(importstatement);
        }
        return imports;
    }
View Full Code Here

    public BehaviourParser.IStatement createStatement() {
        return new Statement();
    }

    public BehaviourParser.IImportstatement createImportstatement() {
        return new Importstatement();
    }
View Full Code Here

        asMethod.setStatement(statement);
        asMethod.setParameters(new Parameters());
        behaviour.addAsMethod(asMethod);

        Imports imports = new Imports();
        Importstatement importstatement = new Importstatement();
        String fullclassname = template.packagename + "." + template.stateClass;
        importstatement.setFullclassname(fullclassname);
        importstatement.setStatement("import " + fullclassname + ";");
        imports.addImportstatement(importstatement);
        behaviour.setImports(imports);

        return behaviour;
    }
View Full Code Here

TOP

Related Classes of net.sf.laja.parser.cdd.behaviour.constructor.Importstatement

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.