com.firefly.template.parser.StatementSwitchDefault Maven / Gradle / Ivy
The 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');
}
}