public interface KeywordResolver
DefaultParser
to resolve
a keyword.Modifier and Type | Method and Description |
---|---|
void |
resolve(DefaultParser parser,
String parameters,
Reader in,
Writer out,
DataFieldResolver dataFieldResolver,
int[] arrayPositioner)
Resolves a keyword using the passed
parameters . |
void resolve(DefaultParser parser, String parameters, Reader in, Writer out, DataFieldResolver dataFieldResolver, int[] arrayPositioner) throws IOException
parameters
.
It may use template code following the keyword, typically ending at a
closingt tag. Any output it generates is written to out
.
When the method returns the parser will continue parsing at the next char
in in
parser
- the parser instance that might be used for callbacks, i.e. for
parsing nested template sections.parameters
- the parameters for this keyword.in
- the template input Reader
at the position
immediately after the keyword.out
- may be null, this means the Keyword is within a section that
will not be part of the result, the resolver may just skip
till the endmarkerdataFieldResolver
- the data structure used for fields.arrayPositioner
- the current loop variables.IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.