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 Classes
    Modifier and Type
    Class
    Description
    protected static class 
     
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    clean(org.apache.velocity.context.InternalContextAdapter context, Object o, ParameterMappingCollector collector, String savedItemKey)
     
     
    int
     
    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
    put(org.apache.velocity.context.InternalContextAdapter context, String key, Object value)
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public String getName()
      Specified by:
      getName in class org.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 class org.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 class org.apache.velocity.runtime.directive.Directive
      Throws:
      IOException
    • clean

      protected void clean(org.apache.velocity.context.InternalContextAdapter context, Object o, ParameterMappingCollector collector, String savedItemKey)
    • put

      protected void put(org.apache.velocity.context.InternalContextAdapter context, String key, Object value)
    • getType

      public int getType()
      Specified by:
      getType in class org.apache.velocity.runtime.directive.Directive
    • isScopeProvided

      public boolean isScopeProvided()
      Overrides:
      isScopeProvided in class org.apache.velocity.runtime.directive.Directive