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 java.lang.Object implements EventHandlerMethodExecutor
Defines the execution strategy for shouldLogOnNullSet- Since:
- 1.5
-
-
Constructor Summary
Constructors Constructor Description ShouldLogOnNullSetExecutor(Context context, java.lang.String lhs, java.lang.String rhs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(EventHandler handler)Call the method shouldLogOnNullSet()java.lang.ObjectgetReturnValue()Get return value at end of all the iterationsbooleanisDone()Called after execute() to see if iterating should stop.
-
-
-
Field Detail
-
context
private Context context
-
lhs
private java.lang.String lhs
-
rhs
private java.lang.String rhs
-
result
private boolean result
when this is false, quit iterating
-
executed
private boolean executed
-
-
Constructor Detail
-
ShouldLogOnNullSetExecutor
ShouldLogOnNullSetExecutor(Context context, java.lang.String lhs, java.lang.String rhs)
-
-
Method Detail
-
execute
public void execute(EventHandler handler)
Call the method shouldLogOnNullSet()- Specified by:
executein interfaceEventHandlerMethodExecutor- Parameters:
handler- call the appropriate method on this handler
-
getReturnValue
public java.lang.Object getReturnValue()
Description copied from interface:EventHandlerMethodExecutorGet return value at end of all the iterations- Specified by:
getReturnValuein interfaceEventHandlerMethodExecutor- Returns:
- null if no return value is required
-
isDone
public boolean isDone()
Description copied from interface:EventHandlerMethodExecutorCalled after execute() to see if iterating should stop. Should always return false before method execute() is run.- Specified by:
isDonein interfaceEventHandlerMethodExecutor- Returns:
- true if no more event handlers for this method should be called.
-
-