Class MapGetFunction

All Implemented Interfaces:
Expression, Function, VolatileFunction, FunctionExpression, Factory

public class MapGetFunction extends FunctionExpressionImpl implements VolatileFunction
Extracts a value from a map given the map name and the needed key as parameters
  • Field Details

  • Constructor Details

    • MapGetFunction

      public MapGetFunction()
  • Method Details

    • evaluate

      public <T> T evaluate(Object object, Class<T> context)
      Description copied from class: ExpressionAbstract
      Default implementation delegates handling of context conversion to Converters utility class.

      Subclasses are expected to make use of the Converters utility class (as the easiest way to provide value morphing in conformance with the Filter specification).

      Specified by:
      evaluate in interface Expression
      Overrides:
      evaluate in class ExpressionAbstract
      Type Parameters:
      T - The type of the returned object.
      Parameters:
      object - The object to evaluate the expression against.
      context - The type of the resulting value of the expression.
      Returns:
      Evaluates the given expression based on the content of the given object an an instance of context.
    • evaluate

      public Object evaluate(Object feature)
      Description copied from class: ExpressionAbstract
      Subclass should override, default implementation returns null.
      Specified by:
      evaluate in interface Expression
      Overrides:
      evaluate in class FunctionExpressionImpl
      Returns:
      default implementation returns null