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

de.neuland.jade4j.parser.node.IfConditionNode Maven / Gradle / Ivy

package de.neuland.jade4j.parser.node;

import de.neuland.jade4j.compiler.IndentWriter;
import de.neuland.jade4j.exceptions.JadeCompilerException;
import de.neuland.jade4j.model.JadeModel;
import de.neuland.jade4j.template.JadeTemplate;

public class IfConditionNode extends Node {

	private boolean defaultNode = false;
	private boolean isInverse = false;
	
	public IfConditionNode(String condition, int lineNumber) {
		this.value = condition;
		this.lineNumber = lineNumber;
	}

	@Override
	public void execute(IndentWriter writer, JadeModel model, JadeTemplate template) throws JadeCompilerException {
		block.execute(writer, model, template);
	}

	public void setDefault(boolean defaultNode) {
		this.defaultNode = defaultNode;		
	}
	
	public boolean isDefault() {
		return defaultNode;
	}

	public boolean isInverse() {
		return isInverse;
	}

	public void setInverse(boolean isInverse) {
		this.isInverse = isInverse;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy