final case class ParsedSpelExpression(original: String, parser: () => ValidatedNel[ExpressionParseError, Expression], initial: Expression) extends LazyLogging with Product with Serializable
Workaround for Spel compilation problem when expression's underlying class changes. Spel tries to explicitly cast result of compiled expression to a class that has been cached during the compilation.
Problematic scenario: In case compilation occurs with type ArrayList and during evaluation a List is provided ClassCastException is thrown. Workaround: In such case we try to parse and compile expression again.
Possible problems: - unless Expression is marked @volatile multiple threads might parse it on their own, - performance problem might occur if the ClassCastException is thrown often (e. g. for consecutive calls to getValue)
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ParsedSpelExpression
- Serializable
- Product
- Equals
- LazyLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ParsedSpelExpression(original: String, parser: () => ValidatedNel[ExpressionParseError, Expression], initial: Expression)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def forceParse(): Unit
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getValue[T](context: EvaluationContext, desiredResultType: Class[_]): T
- val initial: Expression
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
- Annotations
- @transient()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val original: String
- var parsed: Expression
- val parser: () => ValidatedNel[ExpressionParseError, Expression]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated