|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InvalidReferenceEventHandler
Event handler called when an invalid reference is encountered. Allows the application to report errors or substitute return values. May be chained in sequence; the behavior will differ per method.
This feature should be regarded as experimental.
Nested Class Summary | |
---|---|
static class |
InvalidReferenceEventHandler.InvalidGetMethodExecutor
Defines the execution strategy for invalidGetMethod |
static class |
InvalidReferenceEventHandler.InvalidMethodExecutor
Defines the execution strategy for invalidGetMethod |
static class |
InvalidReferenceEventHandler.InvalidSetMethodExecutor
Defines the execution strategy for invalidGetMethod |
Method Summary | |
---|---|
Object |
invalidGetMethod(Context context,
String reference,
Object object,
String property,
Info info)
Called when object is null or there is no getter for the given property. |
Object |
invalidMethod(Context context,
String reference,
Object object,
String method,
Info info)
Called when object is null or the given method does not exist. |
boolean |
invalidSetMethod(Context context,
String leftreference,
String rightreference,
Info info)
Called when object is null or there is no setter for the given property. |
Method Detail |
---|
Object invalidGetMethod(Context context, String reference, Object object, String property, Info info)
context
- the context when the reference was found invalidreference
- string with complete invalid reference. If silent reference, will start with $!object
- the object referred to, or null if not foundproperty
- the property name from the referenceinfo
- contains template, line, column details
boolean invalidSetMethod(Context context, String leftreference, String rightreference, Info info)
context
- the context when the reference was found invalidleftreference
- left reference being assigned torightreference
- invalid reference on the rightinfo
- contains info on template, line, col
Object invalidMethod(Context context, String reference, Object object, String method, Info info)
context
- the context when the reference was found invalidreference
- string with complete invalid reference. If silent reference, will start with $!object
- the object referred to, or null if not foundmethod
- the name of the (non-existent) methodinfo
- contains template, line, column details
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |