summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/ioutils/format/Directive.java
blob: fb03bbc0a946135ff44f6cead26c787ad9603d23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package bjc.utils.ioutils.format;

import java.util.regex.Matcher;

import bjc.utils.esodata.Tape;

/**
 * A CL format directive.
 * 
 * @author EVE
 *
 */
@FunctionalInterface
public interface Directive {
	/**
	 * Execute this format directive.
	 * 
	 * @param sb
	 *        The buffer the string is being output to.
	 * @param item
	 *        The current parameter being passed
	 * @param mods
	 *        The directive modifiers
	 * @param arrParams
	 *        The prefix parameters to the directive
	 * @param tParams
	 *        All of the provided format parameters
	 * @param dirMatcher
	 *        The matcher for format directives
	 * @param fmt
	 *        The formatter itself.
	 */
	public void format(StringBuffer sb, Object item, CLModifiers mods, CLParameters arrParams, Tape<Object> tParams,
			Matcher dirMatcher, CLFormatter fmt);
}