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

raw.runtime.truffle.runtime.aggregation.AggregationLibrary Maven / Gradle / Ivy

/*
 * Copyright 2023 RAW Labs S.A.
 *
 * Use of this software is governed by the Business Source License
 * included in the file licenses/BSL.txt.
 *
 * As of the Change Date specified in that file, in accordance with
 * the Business Source License, use of this software will be governed
 * by the Apache License, Version 2.0, included in the file
 * licenses/APL.txt.
 */

package raw.runtime.truffle.runtime.aggregation;

import com.oracle.truffle.api.library.GenerateLibrary;
import com.oracle.truffle.api.library.Library;
import com.oracle.truffle.api.library.LibraryFactory;

@GenerateLibrary
public abstract class AggregationLibrary extends Library {
  static final LibraryFactory FACTORY =
      LibraryFactory.resolve(AggregationLibrary.class);

  public static LibraryFactory getFactory() {
    return FACTORY;
  }

  public static AggregationLibrary getUncached() {
    return FACTORY.getUncached();
  }

  public boolean isAggregation(Object receiver) {
    return false;
  }

  public abstract Object aggregate(Object receiver, Object iterable);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy