Class ReflectiveCallNotNullImplementor

  • All Implemented Interfaces:

    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)
        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
        translator - translator to implement the code
        call - call to implement
        translatedOperands - arguments of a call
        expression that implements given call
      • containsCheckedException

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