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

spoon.reflect.visitor.ImportScanner Maven / Gradle / Ivy

Go to download

Spoon is a tool for meta-programming, analysis and transformation of Java programs.

The newest version!
package spoon.reflect.visitor;

import spoon.reflect.declaration.CtElement;
import spoon.reflect.declaration.CtType;
import spoon.reflect.reference.CtTypeReference;

import java.util.Collection;

public interface ImportScanner {
	/**
	 * Computes import of a {@link spoon.reflect.declaration.CtType}
	 * (represent a class).
	 *
	 * @return Imports computes by Spoon, not original imports.
	 */
	Collection> computeImports(CtType simpleType);

	/**
	 * Computes imports for all elements.
	 */
	void computeImports(CtElement element);

	/**
	 * Checks if the type is already imported.
	 */
	boolean isImported(CtTypeReference ref);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy