pl.touk.nussknacker.engine.expression.NullExpression.scala Maven / Gradle / Ivy
The newest version!
package pl.touk.nussknacker.engine.expression
import pl.touk.nussknacker.engine.api.Context
import pl.touk.nussknacker.engine.graph.expression.Expression.Language
import pl.touk.nussknacker.engine.expression.parse.CompiledExpression
import pl.touk.nussknacker.engine.spel.SpelExpressionParser.Flavour
case class NullExpression(original: String, flavour: Flavour) extends CompiledExpression {
override val language: Language = flavour.languageId
override def evaluate[T](ctx: Context, globals: Map[String, Any]): T = null.asInstanceOf[T]
}