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
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected org.apache.velocity.util.introspection.InfoFields inherited from class org.apache.velocity.runtime.directive.Directive
log, rsvcFields inherited from interface org.apache.velocity.runtime.directive.DirectiveConstants
BLOCK, LINE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclean(org.apache.velocity.context.InternalContextAdapter context, Object o, ParameterMappingCollector collector, String savedItemKey) getName()intgetType()voidinit(org.apache.velocity.runtime.RuntimeServices rs, org.apache.velocity.context.InternalContextAdapter context, org.apache.velocity.runtime.parser.node.Node node) booleanprotected voidbooleanrender(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:
getNamein 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:
initin 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:
renderin 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:
getTypein classorg.apache.velocity.runtime.directive.Directive
-
isScopeProvided
public boolean isScopeProvided()- Overrides:
isScopeProvidedin classorg.apache.velocity.runtime.directive.Directive
-