blob: 8df8a1b4ff91d21e0c355d02d4414c97218c9fab [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2017, 2018 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.aspectj.org.eclipse.jdt.core;
/**
* Represents a Java module descriptor. The module description could either come from source or binary.
* A simple module looks like the following:
* <pre>
* module my.module {
* exports my.pack1;
* exports my.pack2;
* requires java.sql;
* }
* </pre>
*
* @noimplement This interface is not intended to be implemented by clients.
* @since 3.14
*/
public interface IModuleDescription extends IMember, IAnnotatable {
/**
* Answer the names of all modules directly required from this module.
*
* @return a non-null array of module names
* @since 3.14
*/
String[] getRequiredModuleNames() throws JavaModelException;
/**
*
* @return true if automatic module, else false
* @since 3.14
*/
default boolean isAutoModule() {
return false;
}
}