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

com.glispa.combo.MacroFactory Maven / Gradle / Ivy

The newest version!
package com.glispa.combo;

/**
 * The MacroFactory has the responsibility to create a {@link Macro} object for given argument
 *
 * @param  the state type
 */
public interface MacroFactory {

    /**
     * Builds the macro with provided arguments.
     * The factory is called while parsing a {@link Template}'s text each time
     * the macro keyword is encountered.
     *
     * @param args the list of arguments passed to the macro, never null
     * @return the newly built macro
     */
    Macro build(String[] args);
}