@Internal public final class ExpressionUtils extends Object
Expression
s.Modifier and Type | Method and Description |
---|---|
static <V> Optional<V> |
extractValue(Expression expression,
Class<V> targetClass)
Extracts the value (excluding null) of a given class from an expression assuming it is a
ValueLiteralExpression . |
public static <V> Optional<V> extractValue(Expression expression, Class<V> targetClass)
ValueLiteralExpression
.V
- type of extracted valueexpression
- literal to extract the value fromtargetClass
- expected class to extract from the literalCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.