MCPcopy Create free account
hub / github.com/PCGen/pcgen / loopFOR

Method loopFOR

code/src/java/pcgen/io/ExportHandler.java:822–832  ·  view source on GitHub ↗

Loop through a set of output as required by a FOR loop. @param node The node being processed @param start The starting value of the loop @param end The ending value of the loop @param step The amount by which the counter should be changed each iteration. @param output The writer output is to be sen

(final FORNode node, final int start, final int end, final int step,
						   final BufferedWriter output, final PlayerCharacter aPC)

Source from the content-addressed store, hash-verified

820 * @param aPC The character being processed.
821 */
822 protected void loopFOR(final FORNode node, final int start, final int end, final int step,
823 final BufferedWriter output, final PlayerCharacter aPC)
824 {
825 for (int x = start; ((step < 0) ? x >= end : x <= end); x += step)
826 {
827 if (processLoop(node, output, aPC, x))
828 {
829 break;
830 }
831 }
832 }
833
834 /**
835 * Process an iteration of a FOR loop.

Callers 3

evaluateIIFChildrenMethod · 0.95
processLoopMethod · 0.95
writeMethod · 0.80

Calls 1

processLoopMethod · 0.95

Tested by

no test coverage detected