Class MethodInvocationTrap

    • Method Detail

      • addError

        protected void addError​(java.lang.String msg,
                                ASTNode expr)
        Reports an error back to the source unit.
        Parameters:
        msg - the error message
        expr - the expression that caused the error message.
      • convertClosureToSource

        protected java.lang.String convertClosureToSource​(ClosureExpression expression)
        Converts a ClosureExpression into the String source.
        Parameters:
        expression - a closure
        Returns:
        the source the closure was created from
      • handleTargetMethodCallExpression

        protected abstract boolean handleTargetMethodCallExpression​(MethodCallExpression call)