public final class JkResourceProcessor
extends java.lang.Object
${
and }
by a specified
values.JkPathTreeSet
and for
each of them, we can associate a token map for interpolation.Modifier and Type | Class and Description |
---|---|
static class |
JkResourceProcessor.JkInterpolator
Defines values to be interpolated (replacing key by their
value), and the file filter to apply it.
|
Modifier and Type | Method and Description |
---|---|
JkResourceProcessor |
and(java.lang.Iterable<JkResourceProcessor.JkInterpolator> interpolators)
Creates a
JkResourceProcessor identical at this one but
adding the specified interpolator. |
JkResourceProcessor |
and(JkPathTree tree) |
JkResourceProcessor |
and(JkPathTreeSet trees) |
JkResourceProcessor |
and(JkResourceProcessor.JkInterpolator interpolator)
Creates a
JkResourceProcessor identical at this one but
adding the specified interpolator. |
JkResourceProcessor |
and(java.nio.file.Path dir) |
JkResourceProcessor |
andInterpolate(java.nio.file.PathMatcher pathMatcher,
java.util.Map<java.lang.String,java.lang.String> keyValues) |
JkResourceProcessor |
andInterpolate(java.lang.String acceptPattern,
java.util.Map<java.lang.String,java.lang.String> keyValues) |
void |
generateTo(java.nio.file.Path outputDir,
java.nio.charset.Charset charset)
Actually processes the resources, meaning copies the getResources to the
specified output directory along replacing specified tokens.
|
static JkResourceProcessor |
of(JkPathTree tree)
Creates a
JkResourceProcessor jump the given
JkPathTree without processing any token replacement. |
static JkResourceProcessor |
of(JkPathTreeSet trees)
Creates a
JkResourceProcessor jump the given
JkPathTreeSet without processing any token replacement. |
public static JkResourceProcessor of(JkPathTreeSet trees)
JkResourceProcessor
jump the given
JkPathTreeSet
without processing any token replacement.public static JkResourceProcessor of(JkPathTree tree)
JkResourceProcessor
jump the given
JkPathTree
without processing any token replacement.public void generateTo(java.nio.file.Path outputDir, java.nio.charset.Charset charset)
public JkResourceProcessor and(JkPathTreeSet trees)
and(JkPathTreeSet)
public JkResourceProcessor and(JkPathTree tree)
and(JkPathTreeSet)
public JkResourceProcessor and(java.nio.file.Path dir)
and(JkPathTree)
public JkResourceProcessor and(JkResourceProcessor.JkInterpolator interpolator)
JkResourceProcessor
identical at this one but
adding the specified interpolator.public JkResourceProcessor andInterpolate(java.nio.file.PathMatcher pathMatcher, java.util.Map<java.lang.String,java.lang.String> keyValues)
public JkResourceProcessor andInterpolate(java.lang.String acceptPattern, java.util.Map<java.lang.String,java.lang.String> keyValues)
public JkResourceProcessor and(java.lang.Iterable<JkResourceProcessor.JkInterpolator> interpolators)
JkResourceProcessor
identical at this one but
adding the specified interpolator.