Class OGNLShortcutExpression
java.lang.Object
org.thymeleaf.standard.expression.OGNLShortcutExpression
- Since:
- 3.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ExpressionCacheKeycomputeMethodCacheKey(Class<?> targetClass, String propertyName) private static String[]doParseExpr(String expression, int level, int offset, int len) (package private) Objectstatic ObjectgetArrayProperty(ICache<ExpressionCacheKey, Object> expressionCache, String propertyName, Object[] array) private static Objectstatic ObjectgetEnumerationProperty(ICache<ExpressionCacheKey, Object> expressionCache, String propertyName, Enumeration enumeration) static ObjectgetIteratorProperty(ICache<ExpressionCacheKey, Object> expressionCache, String propertyName, Iterator<?> iterator) static ObjectgetListProperty(ICache<ExpressionCacheKey, Object> expressionCache, String propertyName, List<?> list) private static ObjectgetMapProperty(String propertyName, Map<?, ?> map) private static ObjectgetObjectProperty(ICache<ExpressionCacheKey, Object> expressionCache, String propertyName, Object target) static ObjectgetSetProperty(ICache<ExpressionCacheKey, Object> expressionCache, String propertyName, Set<?> set) (package private) static String[]
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
EXPRESSION_CACHE_TYPE_OGNL_SHORTCUT
- See Also:
-
NO_PARAMS
-
expressionLevels
-
-
Constructor Details
-
OGNLShortcutExpression
OGNLShortcutExpression(String[] expressionLevels)
-
-
Method Details
-
evaluate
Object evaluate(IEngineConfiguration configuration, Map<String, Object> context, Object root) throws Exception- Throws:
Exception
-
getContextProperty
private static Object getContextProperty(String propertyName, Map<String, Object> context, Object target) throws ognl.OgnlException- Throws:
ognl.OgnlException
-
getObjectProperty
-
getMapProperty
-
getListProperty
-
getArrayProperty
-
getEnumerationProperty
public static Object getEnumerationProperty(ICache<ExpressionCacheKey, Object> expressionCache, String propertyName, Enumeration enumeration) -
getIteratorProperty
-
getSetProperty
-
parse
-
doParseExpr
-
computeMethodCacheKey
-