Package org.mybatis.scripting.velocity
Class RepeatDirective
java.lang.Object
org.apache.velocity.runtime.directive.Directive
org.mybatis.scripting.velocity.RepeatDirective
- All Implemented Interfaces:
Cloneable
,org.apache.velocity.runtime.directive.DirectiveConstants
- Direct Known Subclasses:
InDirective
public class RepeatDirective
extends org.apache.velocity.runtime.directive.Directive
#repeat($collection $item SEP OPEN CLOSE).
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected org.apache.velocity.util.introspection.Info
Fields inherited from class org.apache.velocity.runtime.directive.Directive
log, rsvc
Fields inherited from interface org.apache.velocity.runtime.directive.DirectiveConstants
BLOCK, LINE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
clean
(org.apache.velocity.context.InternalContextAdapter context, Object o, ParameterMappingCollector collector, String savedItemKey) getName()
int
getType()
void
init
(org.apache.velocity.runtime.RuntimeServices rs, org.apache.velocity.context.InternalContextAdapter context, org.apache.velocity.runtime.parser.node.Node node) boolean
protected void
boolean
render
(org.apache.velocity.context.InternalContextAdapter context, Writer writer, org.apache.velocity.runtime.parser.node.Node node) Methods inherited from class org.apache.velocity.runtime.directive.Directive
checkArgs, getColumn, getLine, getScopeName, getTemplate, getTemplateName, makeScope, postRender, preRender, setLocation, setLocation
-
Field Details
-
MAX_IN_CLAUSE_SIZE
protected static final int MAX_IN_CLAUSE_SIZE- See Also:
-
uberInfo
protected org.apache.velocity.util.introspection.Info uberInfo
-
-
Constructor Details
-
RepeatDirective
public RepeatDirective()
-
-
Method Details
-
getName
- Specified by:
getName
in classorg.apache.velocity.runtime.directive.Directive
-
init
public void init(org.apache.velocity.runtime.RuntimeServices rs, org.apache.velocity.context.InternalContextAdapter context, org.apache.velocity.runtime.parser.node.Node node) - Overrides:
init
in classorg.apache.velocity.runtime.directive.Directive
-
render
public boolean render(org.apache.velocity.context.InternalContextAdapter context, Writer writer, org.apache.velocity.runtime.parser.node.Node node) throws IOException - Specified by:
render
in classorg.apache.velocity.runtime.directive.Directive
- Throws:
IOException
-
clean
protected void clean(org.apache.velocity.context.InternalContextAdapter context, Object o, ParameterMappingCollector collector, String savedItemKey) -
put
-
getType
public int getType()- Specified by:
getType
in classorg.apache.velocity.runtime.directive.Directive
-
isScopeProvided
public boolean isScopeProvided()- Overrides:
isScopeProvided
in classorg.apache.velocity.runtime.directive.Directive
-