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

com.litongjava.annotation.AliasFor Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.litongjava.annotation;

import java.lang.annotation.Annotation;
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;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface AliasFor {

	/**
	 * Alias for {@link #attribute}.
	 * 

Intended to be used instead of {@link #attribute} when {@link #annotation} * is not declared — for example: {@code @AliasFor("value")} instead of * {@code @AliasFor(attribute = "value")}. */ @AliasFor("attribute") String value() default ""; /** * The name of the attribute that this attribute is an alias for. * @see #value */ @AliasFor("value") String attribute() default ""; /** * The type of annotation in which the aliased {@link #attribute} is declared. *

Defaults to {@link Annotation}, implying that the aliased attribute is * declared in the same annotation as this attribute. */ Class annotation() default Annotation.class; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy