Modifier and Type | Method and Description |
---|---|
java.lang.Object |
InvalidReferenceEventHandler.invalidGetMethod(Context context,
java.lang.String reference,
java.lang.Object object,
java.lang.String property,
Info info)
Called when object is null or there is no getter for the given
property.
|
java.lang.Object |
EventCartridge.invalidGetMethod(Context context,
java.lang.String reference,
java.lang.Object object,
java.lang.String property,
Info info)
Call invalid reference handlers for an invalid getter
|
static java.lang.Object |
EventHandlerUtil.invalidGetMethod(RuntimeServices rsvc,
InternalContextAdapter context,
java.lang.String reference,
java.lang.Object object,
java.lang.String property,
Info info)
Called when an invalid get method is encountered.
|
java.lang.Object |
InvalidReferenceEventHandler.invalidMethod(Context context,
java.lang.String reference,
java.lang.Object object,
java.lang.String method,
Info info)
Called when object is null or the given method does not exist.
|
java.lang.Object |
EventCartridge.invalidMethod(Context context,
java.lang.String reference,
java.lang.Object object,
java.lang.String method,
Info info)
Call invalid reference handlers for an invalid method call
|
static java.lang.Object |
EventHandlerUtil.invalidMethod(RuntimeServices rsvc,
InternalContextAdapter context,
java.lang.String reference,
java.lang.Object object,
java.lang.String method,
Info info)
Called when an invalid method is encountered.
|
boolean |
InvalidReferenceEventHandler.invalidSetMethod(Context context,
java.lang.String leftreference,
java.lang.String rightreference,
Info info)
Called when object is null or there is no setter for the given
property.
|
boolean |
EventCartridge.invalidSetMethod(Context context,
java.lang.String leftreference,
java.lang.String rightreference,
Info info)
Call invalid reference handlers for an invalid setter
|
static void |
EventHandlerUtil.invalidSetMethod(RuntimeServices rsvc,
InternalContextAdapter context,
java.lang.String leftreference,
java.lang.String rightreference,
Info info)
Called when an invalid set method is encountered.
|
java.lang.Object |
MethodExceptionEventHandler.methodException(Context context,
java.lang.Class<?> claz,
java.lang.String method,
java.lang.Exception e,
Info info)
Called when a method throws an exception.
|
java.lang.Object |
EventCartridge.methodException(Context context,
java.lang.Class<?> claz,
java.lang.String method,
java.lang.Exception e,
Info info)
Call method exception event handler
|
static java.lang.Object |
EventHandlerUtil.methodException(RuntimeServices rsvc,
InternalContextAdapter context,
java.lang.Class<?> claz,
java.lang.String method,
java.lang.Exception e,
Info info)
Called when a method exception is generated during Velocity merge.
|
Modifier and Type | Class and Description |
---|---|
class |
InvalidReferenceInfo
Convenience class to use when reporting out invalid syntax
with line, column, and template name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ReportInvalidReferences.invalidGetMethod(Context context,
java.lang.String reference,
java.lang.Object object,
java.lang.String property,
Info info)
Collect the error and/or throw an exception, depending on configuration.
|
java.lang.Object |
ReportInvalidReferences.invalidMethod(Context context,
java.lang.String reference,
java.lang.Object object,
java.lang.String method,
Info info)
Collect the error and/or throw an exception, depending on configuration.
|
boolean |
ReportInvalidReferences.invalidSetMethod(Context context,
java.lang.String leftreference,
java.lang.String rightreference,
Info info)
Collect the error and/or throw an exception, depending on configuration.
|
java.lang.Object |
PrintExceptions.methodException(Context context,
java.lang.Class<?> claz,
java.lang.String method,
java.lang.Exception e,
Info info)
Render the method exception, and optionally the exception message and stack trace.
|
private void |
ReportInvalidReferences.reportInvalidReference(java.lang.String reference,
Info info)
Check for an invalid reference and collect the error or throw an exception
(depending on configuration).
|
Constructor and Description |
---|
InvalidReferenceInfo(java.lang.String invalidReference,
Info info) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
EventExample.invalidGetMethod(Context context,
java.lang.String reference,
java.lang.Object object,
java.lang.String property,
Info info) |
java.lang.Object |
EventExample.invalidMethod(Context context,
java.lang.String reference,
java.lang.Object object,
java.lang.String method,
Info info) |
boolean |
EventExample.invalidSetMethod(Context context,
java.lang.String leftreference,
java.lang.String rightreference,
Info info)
Event handler for when the right hand side of
a #set() directive is null, which results in
a log message.
|
java.lang.Object |
EventExample.methodException(Context context,
java.lang.Class claz,
java.lang.String method,
java.lang.Exception e,
Info info) |
Constructor and Description |
---|
ParseErrorException(java.lang.String exceptionMessage,
Info info)
Create a ParseErrorRuntimeException with the given message and info
|
ParseErrorException(java.lang.String exceptionMessage,
Info info,
java.lang.String invalidSyntax)
Create a ParseErrorRuntimeException with the given message and info
|
ParseErrorException(java.lang.String exceptionMessage,
Info info,
java.lang.String[] stacktrace)
Create a ParseErrorRuntimeException with the given message and info
|
Modifier and Type | Field and Description |
---|---|
protected Info |
Foreach.uberInfo
immutable, so create in init
|
Modifier and Type | Field and Description |
---|---|
protected Info |
LogContext.StackElement.info |
Modifier and Type | Method and Description |
---|---|
void |
LogContext.pushLogContext(SimpleNode src,
Info info) |
private void |
LogContext.setLogContext(Info info) |
Constructor and Description |
---|
StackElement(SimpleNode src,
Info info) |
Modifier and Type | Field and Description |
---|---|
protected Info |
ASTMethod.uberInfo |
protected Info |
ASTReference.uberInfo |
protected Info |
ASTIdentifier.uberInfo
This is really immutable after the init, so keep one for this node
|
protected Info |
ASTSetDirective.uberInfo
This is really immutable after the init, so keep one for this node
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
StringUtils.formatFileString(Info info)
Simply creates a string that formats the template filename with line number
and column.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator |
Uberspect.getIterator(java.lang.Object obj,
Info info)
To support iteratives - #foreach()
|
java.util.Iterator |
UberspectImpl.getIterator(java.lang.Object obj,
Info i)
To support iterative objects used in a
#foreach()
loop. |
java.util.Iterator |
LinkingUberspector.getIterator(java.lang.Object obj,
Info i)
To support iterative objects used in a
#foreach()
loop. |
java.util.Iterator |
SecureUberspector.getIterator(java.lang.Object obj,
Info i)
Get an iterator from the given object.
|
java.util.Iterator |
UberspectPublicFields.getIterator(java.lang.Object obj,
Info info) |
java.util.Iterator |
AbstractChainableUberspector.getIterator(java.lang.Object obj,
Info i)
To support iterative objects used in a
#foreach()
loop. |
VelMethod |
DeprecatedCheckUberspector.getMethod(java.lang.Object obj,
java.lang.String methodName,
java.lang.Object[] args,
Info i) |
VelMethod |
Uberspect.getMethod(java.lang.Object obj,
java.lang.String method,
java.lang.Object[] args,
Info info)
Returns a general method, corresponding to $foo.bar( $woogie )
|
VelMethod |
UberspectImpl.getMethod(java.lang.Object obj,
java.lang.String methodName,
java.lang.Object[] args,
Info i)
Method
|
VelMethod |
LinkingUberspector.getMethod(java.lang.Object obj,
java.lang.String methodName,
java.lang.Object[] args,
Info i)
Method
|
VelMethod |
UberspectPublicFields.getMethod(java.lang.Object obj,
java.lang.String method,
java.lang.Object[] args,
Info info) |
VelMethod |
AbstractChainableUberspector.getMethod(java.lang.Object obj,
java.lang.String methodName,
java.lang.Object[] args,
Info i)
Method
|
VelPropertyGet |
DeprecatedCheckUberspector.getPropertyGet(java.lang.Object obj,
java.lang.String identifier,
Info i) |
VelPropertyGet |
Uberspect.getPropertyGet(java.lang.Object obj,
java.lang.String identifier,
Info info)
Property getter - returns VelPropertyGet appropos for #set($foo = $bar.woogie)
|
VelPropertyGet |
UberspectImpl.getPropertyGet(java.lang.Object obj,
java.lang.String identifier,
Info i)
Property getter
|
VelPropertyGet |
LinkingUberspector.getPropertyGet(java.lang.Object obj,
java.lang.String identifier,
Info i)
Property getter
|
VelPropertyGet |
UberspectPublicFields.getPropertyGet(java.lang.Object obj,
java.lang.String identifier,
Info i)
Property getter
|
VelPropertyGet |
AbstractChainableUberspector.getPropertyGet(java.lang.Object obj,
java.lang.String identifier,
Info i)
Property getter
|
VelPropertySet |
DeprecatedCheckUberspector.getPropertySet(java.lang.Object obj,
java.lang.String identifier,
java.lang.Object arg,
Info i) |
VelPropertySet |
Uberspect.getPropertySet(java.lang.Object obj,
java.lang.String identifier,
java.lang.Object arg,
Info info)
Property setter - returns VelPropertySet appropos for #set($foo.bar = "geir")
|
VelPropertySet |
UberspectImpl.getPropertySet(java.lang.Object obj,
java.lang.String identifier,
java.lang.Object arg,
Info i)
Property setter
|
VelPropertySet |
LinkingUberspector.getPropertySet(java.lang.Object obj,
java.lang.String identifier,
java.lang.Object arg,
Info i)
Property setter
|
VelPropertySet |
UberspectPublicFields.getPropertySet(java.lang.Object obj,
java.lang.String identifier,
java.lang.Object arg,
Info i)
Property setter
|
VelPropertySet |
AbstractChainableUberspector.getPropertySet(java.lang.Object obj,
java.lang.String identifier,
java.lang.Object arg,
Info i)
Property setter
|
private void |
DeprecatedCheckUberspector.logWarning(java.lang.String deprecationType,
java.lang.Object object,
java.lang.String methodName,
Info info)
Helper method to log a warning when a deprecation has been found.
|