类的使用
org.apache.velocity.tools.generic.LoopTool.ManagedIterator
使用LoopTool.ManagedIterator的程序包
程序包
说明
Contains a collection of reusable, general-purpose "tools" for Velocity.
-
org.apache.velocity.tools.generic中LoopTool.ManagedIterator的使用
修饰符和类型方法说明LoopTool.ManagedIterator.condition(LoopTool.ActionCondition condition) Adds a newLoopTool.ActionConditionfor this instance to check against the elements in the iterator being managed.Directs this instance to completely exclude any elements equal to the specified Object.protected LoopTool.ManagedIteratorLoopTool.findIterator(String name) Finds theLoopTool.ManagedIteratorwith the specified name if it is in this instance's iterator stack.LoopTool.getThis()Returns the most recentLoopTool.ManagedIteratorfor this instance.protected LoopTool.ManagedIteratorprotected LoopTool.ManagedIteratorLoopTool.pop()Don't let templates call this, but allow subclasses and ManagedIterator to have access.Directs this instance to stop iterating immediately prior to any element equal to the specified Object.Adds another iterator to be kept in sync with the one being managed by this instance.Adds another iterator to be kept in sync with the one being managed by this instance.Tells the LoopTool to watch the specified Array, Collection, Map, Iterator, Iterable, Enumeration or POJO with an iterator() method while the template iterates over the values within it.This is just likeLoopTool.watch(Object)except that it also takes a name which is given to theLoopTool.ManagedIteratorthat is returned.