public class ListAccessor extends ReflectionAccessor
Accessor implementation that allows to access a List by
index. “list.size” will return the size of the list, “list.isEmpty” will
return the result of List.isEmpty(), and “list.0” will return the
first element of the list, “list.1” the second, and so on.MAP_ACCESSOR| Constructor and Description |
|---|
ListAccessor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(TemplateContext templateContext,
Object object,
String member)
Returns the member with the given name.
|
public Object get(TemplateContext templateContext, Object object, String member)
get in interface Accessorget in class ReflectionAccessortemplateContext - The current template contextobject - The object to accessmember - The name of the membernull if the member does not existCopyright © 2026. All rights reserved.