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

org.eclipse.epsilon.egl.IEgxModule Maven / Gradle / Ivy

The newest version!
/*********************************************************************
 * Copyright (c) 2018 The University of York.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.epsilon.egl;

import java.util.List;
import org.eclipse.epsilon.egl.dom.GenerationRule;
import org.eclipse.epsilon.egl.execute.context.IEgxContext;
import org.eclipse.epsilon.erl.IErlModule;

/**
 * 
 * @author Sina Madani
 * @since 1.6
 */
public interface IEgxModule extends IErlModule {
	
	List getDeclaredGenerationRules();
	
	List getGenerationRules();
	
	default EglTemplateFactory getTemplateFactory() {
		return getContext().getTemplateFactory();
	}
	
	default void setTemplateFactory(EglTemplateFactory templateFactory) {
		getContext().setTemplateFactory(templateFactory);
	}
	
	@Override
	default IEgxContext getContext() {
		return (IEgxContext) ((IErlModule)this).getContext();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy