public interface InvalidReferenceEventHandler extends EventHandler
This feature should be regarded as experimental.
Modifier and Type | Method and Description |
---|---|
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.
|
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 referenceobject
- the object referred to, or null if not foundproperty
- the property name from the referenceinfo
- contains template, line, column detailsboolean 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, colObject invalidMethod(Context context, String reference, Object object, String method, Info info)
context
- the context when the reference was found invalidreference
- string with complete invalid referenceobject
- the object referred to, or null if not foundmethod
- the name of the (non-existent) methodinfo
- contains template, line, column detailsCopyright © 2000–2021 The Apache Software Foundation. All rights reserved.