blob: 1db1c6925e9778e1a3ac1bf62f8269748c9dd4b8 [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.xtext.xbase.lib;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
/**
* Marks a field, parameter or local variable as extension provider.
*
* Annotated extension fields are inherited if their visibility is set
* accordingly.
*
* @author Sebastian Zarnekow - Initial contribution and API
*
* @since 2.4
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({
ElementType.FIELD,
ElementType.PARAMETER,
ElementType.LOCAL_VARIABLE
})
@Documented
@Beta
@GwtCompatible public @interface Extension {
}