blob: b95c18c1bab94f42ba26ced83244454ddc0ee4d1 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 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.declaration;
import com.google.common.annotations.Beta;
/**
* An element that can be annotated
*
* @author Sven Efftinge
* @noimplement This interface is not intended to be implemented by clients.
*/
@Beta
public interface AnnotationTarget extends NamedElement {
/**
* @return the annotations this element is annotated with
*/
Iterable<? extends AnnotationReference> getAnnotations();
/**
* @param annotationType
* @return the annotation reference for the given type, or <code>null</code>
* if this element is not annotated with the given annotation type
*/
AnnotationReference findAnnotation(Type annotationType);
}