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

Examples of net.sf.laja.parser.cdd.behaviour.AsMethod


        behaviour.srcFilename = behaviour.sourceDir + "/" + template.classname + ".java";
        behaviour.setClassname(template.classname);
        behaviour.setStateClass(template.classname + "State");
        behaviour.setParameters(new Parameters());

        AsMethod asMethod = new AsMethod();
        asMethod.setComment("(factory)");
        asMethod.setMethodName("as" + template.classname);
        asMethod.setReturnclass(template.classname);
        Statement statement = new Statement();
        statement.setInnerStatement("        return new " + behaviour.classname + "(state);");
        asMethod.setStatement(statement);
        asMethod.setParameters(new Parameters());
        behaviour.addAsMethod(asMethod);

        Imports imports = new Imports();
        Importstatement importstatement = new Importstatement();
        String fullclassname = template.packagename + "." + template.stateClass;
View Full Code Here

TOP

Related Classes of net.sf.laja.parser.cdd.behaviour.AsMethod

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.