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

cmd.$repeat Maven / Gradle / Ivy

package cmd;

import static java.lang.Integer.valueOf;
import org.bitbucket.gkutiel.at.Cmd;
import org.bitbucket.gkutiel.at.Context;

public class $repeat extends Cmd {

	@Override public String eval(final Context ctx) {
		final int times = valueOf(args);
		final StringBuilder str = new StringBuilder();
		for (int i = 0; i < times; i++)
			str.append(evalChildren(ctx));
		return str.toString();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy