Class ReflectiveCallNotNullImplementor

  • All Implemented Interfaces:
    NotNullImplementor

    public class ReflectiveCallNotNullImplementor
    extends java.lang.Object
    implements NotNullImplementor
    Implementation of NotNullImplementor that calls a given Method.

    When method is not static, a new instance of the required class is created.

    • Field Detail

      • method

        protected final java.lang.reflect.Method method
    • Constructor Detail

      • ReflectiveCallNotNullImplementor

        public ReflectiveCallNotNullImplementor​(java.lang.reflect.Method method)
        Parameters:
        method - method that is used to implement the call
    • Method Detail

      • implement

        public Expression implement​(RexToLixTranslator translator,
                                    RexCall call,
                                    java.util.List<Expression> translatedOperands)
        Description copied from interface: NotNullImplementor
        Implements a call with assumption that all the null-checking is implemented by caller.
        Specified by:
        implement in interface NotNullImplementor
        Parameters:
        translator - translator to implement the code
        call - call to implement
        translatedOperands - arguments of a call
        Returns:
        expression that implements given call
      • containsCheckedException

        private boolean containsCheckedException​(java.lang.reflect.Method method)