Package org.apache.velocity.app.event
Class InvalidReferenceEventHandler.InvalidSetMethodExecutor
- java.lang.Object
-
- org.apache.velocity.app.event.InvalidReferenceEventHandler.InvalidSetMethodExecutor
-
- All Implemented Interfaces:
EventHandlerMethodExecutor
- Enclosing interface:
- InvalidReferenceEventHandler
public static class InvalidReferenceEventHandler.InvalidSetMethodExecutor extends java.lang.Object implements EventHandlerMethodExecutor
Defines the execution strategy for invalidGetMethod
-
-
Field Summary
Fields Modifier and Type Field Description private Context
context
private Info
info
private java.lang.String
leftreference
private boolean
result
private java.lang.String
rightreference
-
Constructor Summary
Constructors Constructor Description InvalidSetMethodExecutor(Context context, java.lang.String leftreference, java.lang.String rightreference, Info info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(EventHandler handler)
Call the method invalidSetMethod()java.lang.Object
getReturnValue()
Get return value at end of all the iterationsboolean
isDone()
Called after execute() to see if iterating should stop.
-
-
-
Method Detail
-
execute
public void execute(EventHandler handler)
Call the method invalidSetMethod()- Specified by:
execute
in interfaceEventHandlerMethodExecutor
- Parameters:
handler
- call the appropriate method on this handler
-
getReturnValue
public java.lang.Object 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.
-
-