Class FreestyleExpression

All Implemented Interfaces:
Expression, HasImports

public final class FreestyleExpression extends AbstractParametrizedFlux implements HasImports, Expression
An expression to encapsulate an arbitrary expression.
  • Constructor Details

    • FreestyleExpression

      public FreestyleExpression(@Nonnull String expression)
      Parameters:
      expression - the string representation of th expression to encapsulate.
  • Method Details

    • toString

      public String toString(@Nonnull Map<String,Object> parameters, boolean prependImports)
      Specified by:
      toString in interface Expression
      Overrides:
      toString in class Flux
      Parameters:
      parameters - parameters to resolve
      prependImports - true, if the imports should be prepended
      Returns:
      the string representation of the expression
    • operatorName

      @Nonnull protected String operatorName()
      Specified by:
      operatorName in class AbstractParametrizedFlux
      Returns:
      name of function
    • collectImports

      public void collectImports(@Nonnull Set<String> collectedImports)
      Description copied from class: Flux
      Collects all imports of the flux.
      Overrides:
      collectImports in class Flux
      Parameters:
      collectedImports - a set to be filled by the used imports