Package com.composum.sling.core.util
Class ExpressionUtil
- java.lang.Object
-
- com.composum.sling.core.util.ExpressionUtil
-
public class ExpressionUtil extends Object
Utility to evaluate expressions e.g. in tags. Include ExpressionUtil as lazy getter into tag.
-
-
Constructor Summary
Constructors Constructor Description ExpressionUtil(javax.servlet.jsp.PageContext pageContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
eval(Object value, T defaultValue)
evaluate an EL expression value, the value can contain @{..} expression rules which are transformed to ${..}
-
-
-
Method Detail
-
eval
public <T> T eval(Object value, T defaultValue)
evaluate an EL expression value, the value can contain @{..} expression rules which are transformed to ${..}
-
-