public class ExpressionUtil extends Object
Constructor and Description |
---|
ExpressionUtil() |
Modifier and Type | Method and Description |
---|---|
static ValueExpression |
createValueExpression(PageContext pageContext,
String expression,
Class<?> expectedType)
Create a value expression.
|
static <T> T |
evaluate(ValueExpression expression,
PageContext pageContext)
Evaluate a value expression.
|
static boolean |
evaluate(ValueExpression expression,
PageContext pageContext,
boolean fallback) |
static int |
evaluate(ValueExpression expression,
PageContext pageContext,
int fallback) |
static ExpressionFactory |
getExpressionFactory(PageContext pageContext)
Return the JSP's ExpressionFactory.
|
public static ValueExpression createValueExpression(PageContext pageContext, String expression, Class<?> expectedType)
pageContext
- the context in which the expression will be parsedexpression
- the expressionexpectedType
- the expected type of resultpublic static ExpressionFactory getExpressionFactory(PageContext pageContext)
pageContext
- the context for the JSPpublic static <T> T evaluate(ValueExpression expression, PageContext pageContext)
T
- the expected type of the expressionexpression
- the expressionpageContext
- the context for the JSPpublic static boolean evaluate(ValueExpression expression, PageContext pageContext, boolean fallback)
public static int evaluate(ValueExpression expression, PageContext pageContext, int fallback)
Copyright © 2017 JBoss by Red Hat. All rights reserved.