Class NumberConversion<T>

Type Parameters:
T -
All Implemented Interfaces:
Expression<T>, FactoryExpression<T>, Serializable

public class NumberConversion<T> extends FactoryExpressionBase<T>
NumberConversion ensures that the results of a numeric projection conform to the type of the projection expression
Author:
tiwe
See Also:
  • Constructor Details

    • NumberConversion

      public NumberConversion(Expression<T> expr)
  • Method Details

    • accept

      public <R, C> R accept(Visitor<R,C> v, C context)
      Description copied from interface: Expression
      Accept the visitor with the given context
      Type Parameters:
      R - return type
      C - context type
      Parameters:
      v - visitor
      context - context of visit
      Returns:
      result of visit
    • getArgs

      public List<Expression<?>> getArgs()
      Description copied from interface: FactoryExpression
      Get the invocation arguments
      Returns:
      argument expressions
    • newInstance

      public T newInstance(Object... args)
      Description copied from interface: FactoryExpression
      Create a projection with the given arguments
      Parameters:
      args - row arguments
      Returns:
      constructed value