Module jakarta.el
Package jakarta.el

Class Expression

java.lang.Object
jakarta.el.Expression
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MethodExpression, ValueExpression

public abstract class Expression extends Object implements Serializable
Base class for the expression subclasses ValueExpression and MethodExpression, implementing characteristics common to both.

All expressions must implement the equals() and hashCode() methods so that two expressions can be compared for equality. They are redefined abstract in this class to force their implementation in subclasses.

All expressions must also be Serializable so that they can be saved and restored.

Expressions are also designed to be immutable so that only one instance needs to be created for any given expression String / FunctionMapper. This allows a container to pre-create expressions and not have to re-parse them each time they are evaluated.

Since:
Jakarta Server Pages 2.1
See Also: