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

cfml.parsing.cfscript.script.IncludeStatement Maven / Gradle / Ivy

There is a newer version: 2.11.0
Show newest version
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 IncludeStatement extends CFParsedStatement implements java.io.Serializable {
	
	private static final long serialVersionUID = 1L;
	
	public CFExpression getTemplate() {
		return template;
	}
	
	private CFExpression template;
	
	public IncludeStatement(Token _t, CFExpression _template) {
		super(_t);
		template = _template;
	}
	
	@Override
	public String Decompile(int indent) {
		return "include " + template.Decompile(0);
	}
	
	@Override
	public List decomposeExpression() {
		return ArrayBuilder.createCFExpression(template);
	}
	
	@Override
	public List decomposeScript() {
		return ArrayBuilder.createCFScriptStatement();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy