All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.groovy.ast.expr.MethodReferenceExpression Maven / Gradle / Ivy

Go to download

Spock's Groovy 2 Compatibility Module provides support for using Spock 2 with Groovy 2.5.

There is a newer version: 2.4-M4-groovy-2.5
Show newest version
/*
 *  Licensed to the Apache Software Foundation (ASF) under one
 *  or more contributor license agreements.  See the NOTICE file
 *  distributed with this work for additional information
 *  regarding copyright ownership.  The ASF licenses this file
 *  to you under the Apache License, Version 2.0 (the
 *  "License"); you may not use this file except in compliance
 *  with the License.  You may obtain a copy of the License at
 *
 *    https://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing,
 *  software distributed under the License is distributed on an
 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *  KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations
 *  under the License.
 */
package org.codehaus.groovy.ast.expr;

/**
 * Dummy Groovy 3 class implementation to keep codebase compilable also with Groovy 2.5
 */
public class MethodReferenceExpression extends MethodPointerExpression {

  public MethodReferenceExpression(Expression expression, Expression methodName) {
    super(expression, methodName);
    throw new UnsupportedOperationException("Dummy LambdaExpression providing Spock codebase compatibility with both Groovy 2 and 3 " +
      "should not be instantiated. Make sure you do not mix spock-2.x-groovy-2.5 and groovy-3 artifacts on classpath.");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy