/*******************************************************************************
 * Copyright (c) 2008, 2011 Sonatype Inc. and others.
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *    Sonatype Inc. - initial API and implementation
 *******************************************************************************/
package org.eclipse.tycho.classpath;

import java.util.List;

import org.apache.maven.plugin.MojoExecutionException;
import org.eclipse.tycho.runtime.Adaptable;

/**
 * Computes and returns Tycho java compiler configuration, i.e. compile or test-compile mojos of
 * org.eclipse.tycho:tycho-compiler-plugin
 * Use {@link Adaptable#getAdapter(Class)} on compile or test-compile mojos to get instance of this
 * intergace
 * 
 * @author igor
 * @noimplement This interface is not intended to be implemented by clients.
 */
public interface JavaCompilerConfiguration {
    /**
     * Computes and returns compile classpath of a Tycho eclipse-plugin or eclipse-test-plugin
     * project.
     */
    public List<ClasspathEntry> getClasspath() throws MojoExecutionException;

    /**
     * Computes and returns sourcepath of a Tycho eclipse-plugin or eclipse-test-plugin project.
     */
    public List<SourcepathEntry> getSourcepath() throws MojoExecutionException;

    public String getSourceLevel() throws MojoExecutionException;

    public String getTargetLevel() throws MojoExecutionException;

    public String getReleaseLevel() throws MojoExecutionException;

    public String getExecutionEnvironment() throws MojoExecutionException;
}
