| /******************************************************************************* |
| * Copyright (c) 2014 itemis AG (http://www.itemis.eu) and others. |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| *******************************************************************************/ |
| package org.eclipse.xtend.lib.macro.services; |
| |
| import org.eclipse.xtend.lib.macro.declaration.Type; |
| |
| /** |
| * @since 2.8 |
| */ |
| public interface GlobalTypeLookup { |
| |
| /** |
| * @param clazz |
| * the clazz representing the type to look up |
| * @return the type with the same qualified name as the given |
| * <code>Class</code> object, or <code>null</code> if that type |
| * couldn't be found on the compilation units classpath. |
| */ |
| Type findTypeGlobally(Class<?> clazz); |
| |
| /** |
| * @param typeName |
| * the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot). |
| * @return the type with the given qualified name, or <code>null</code> if such a type |
| * couldn't be found on the compilation units classpath. |
| */ |
| Type findTypeGlobally(String typeName); |
| |
| } |