All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.template.parser.StatementSwitch Maven / Gradle / Ivy

There is a newer version: 4.0.20
Show newest version
package com.firefly.template.parser;

public class StatementSwitch implements Statement {

	@Override
	public void parse(String content, JavaFileBuilder javaFileBuilder) {
		javaFileBuilder.outBreak = false;
		String obj = content.substring(content.indexOf("${") + 2,
				content.length() - 1);
		javaFileBuilder.write(javaFileBuilder.getPreBlank()
				+ "switch(objNav.getInteger(model, \"" + obj + "\")) {\n");
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy