Class Expression
java.lang.Object
jakarta.el.Expression
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MethodExpression, ValueExpression
Base class for EL expression objects. An Expression represents a compiled EL expression that can be evaluated.
Subclasses include
ValueExpression and MethodExpression.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract StringReturns the original string representation of this EL expression as it was parsed.abstract inthashCode()abstract booleanReturns whether this expression is a literal text expression, meaning it does not contain any variables, functions, or operators and evaluates to a constant value.
-
Constructor Details
-
Expression
public Expression()Constructs an Expression. Subclasses should invoke this constructor to initialize the base expression state.
-
-
Method Details
-
getExpressionString
Returns the original string representation of this EL expression as it was parsed.- Returns:
- the string representation of this expression
-
equals
-
hashCode
-
isLiteralText
public abstract boolean isLiteralText()Returns whether this expression is a literal text expression, meaning it does not contain any variables, functions, or operators and evaluates to a constant value.- Returns:
trueif this expression is a literal text,falseotherwise
-