
at.$repeat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of at-lang Show documentation
Show all versions of at-lang Show documentation
Basic commands set for the at lang
The newest version!
package at;
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