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

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

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

public class StatementSwitchDefault implements Statement {

	@Override
	public void parse(String content, JavaFileBuilder javaFileBuilder) {
		if (javaFileBuilder.outBreak) {
			javaFileBuilder.write(javaFileBuilder.getPreBlank() + "break;\n");
			javaFileBuilder.getPreBlank().deleteCharAt(0);
		}
		javaFileBuilder.write(javaFileBuilder.getPreBlank() + "default:\n");
		javaFileBuilder.outBreak = true;
		javaFileBuilder.getPreBlank().append('\t');
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy