Class Source
java.lang.Object
org.apache.commons.jexl3.internal.Source
Maintains the set of allowed features associated with a script/expression source.
This is meant for caching scripts using their 'source' as key but still distinguishing scripts with different features and prevent false sharing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JexlFeatures
The set of features.private final int
The hash code, pre-computed for fast op.private final String
The actual source script/expression. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
hashCode
private final int hashCodeThe hash code, pre-computed for fast op. -
features
The set of features. -
str
The actual source script/expression.
-
-
Constructor Details
-
Source
Source(JexlFeatures theFeatures, String theStr) Default constructor.- Parameters:
theFeatures
- the featurestheStr
- the script source
-
-
Method Details