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

org.webpieces.templatingdev.api.AbstractGroovyGen Maven / Gradle / Ivy

There is a newer version: 2.1.109
Show newest version
package org.webpieces.templatingdev.api;

public abstract class AbstractGroovyGen implements GroovyGen {

	@Override
	public void generateStartAndEnd(ScriptOutput sourceCode, Token token, int uniqueId) {
		String name = getName();
		throw new IllegalArgumentException(name+" tag can only be used with a body so"
				+ " #{"+name+"/} is not usable. "+token.getSourceLocation(true));
	}
	
	/**
	 * Only needed in special cases like the #{else}# MUST have an #{/if} before it
	 */
	public void validatePreviousSibling(Token current, Token prevous) {
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy