Package org.apache.velocity.app.event
Class NullSetEventHandler.ShouldLogOnNullSetExecutor
java.lang.Object
org.apache.velocity.app.event.NullSetEventHandler.ShouldLogOnNullSetExecutor
- All Implemented Interfaces:
EventHandlerMethodExecutor
- Enclosing interface:
- NullSetEventHandler
public static class NullSetEventHandler.ShouldLogOnNullSetExecutor
extends Object
implements EventHandlerMethodExecutor
Defines the execution strategy for shouldLogOnNullSet
- Since:
- 1.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(EventHandler handler) Call the method shouldLogOnNullSet()Get return value at end of all the iterationsboolean
isDone()
Called after execute() to see if iterating should stop.
-
Field Details
-
context
-
lhs
-
rhs
-
result
private boolean resultwhen this is false, quit iterating -
executed
private boolean executed
-
-
Constructor Details
-
ShouldLogOnNullSetExecutor
-
-
Method Details
-
execute
Call the method shouldLogOnNullSet()- Specified by:
execute
in interfaceEventHandlerMethodExecutor
- Parameters:
handler
- call the appropriate method on this handler
-
getReturnValue
Description copied from interface:EventHandlerMethodExecutor
Get return value at end of all the iterations- Specified by:
getReturnValue
in interfaceEventHandlerMethodExecutor
- Returns:
- null if no return value is required
-
isDone
public boolean isDone()Description copied from interface:EventHandlerMethodExecutor
Called after execute() to see if iterating should stop. Should always return false before method execute() is run.- Specified by:
isDone
in interfaceEventHandlerMethodExecutor
- Returns:
- true if no more event handlers for this method should be called.
-