cfml.parsing.cfscript.script.CFIncludeStatement Maven / Gradle / Ivy
package cfml.parsing.cfscript.script;
import java.util.List;
import org.antlr.v4.runtime.Token;
import cfml.parsing.cfscript.CFExpression;
import cfml.parsing.util.ArrayBuilder;
public class CFIncludeStatement extends CFParsedStatement implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private CFExpression template;
public CFIncludeStatement(Token _t, CFExpression _template) {
super(_t);
template = _template;
}
@Override
public String Decompile(int indent) {
return "include " + template.Decompile(0);
}
public CFExpression getTemplate() {
return template;
}
@Override
public List decomposeExpression() {
return ArrayBuilder.createCFExpression(template);
}
@Override
public List decomposeScript() {
return ArrayBuilder.createCFScriptStatement();
}
}