mirror of
https://github.com/corda/corda.git
synced 2025-06-14 21:28:14 +00:00
Adding @Target and the associated ElementType enum for specifying the type an annotation is.
This commit is contained in:
22
classpath/java/lang/annotation/ElementType.java
Normal file
22
classpath/java/lang/annotation/ElementType.java
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/* Copyright (c) 2012, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
|
package java.lang.annotation;
|
||||||
|
|
||||||
|
public enum ElementType {
|
||||||
|
ANNOTATION_TYPE,
|
||||||
|
CONSTRUCTOR,
|
||||||
|
FIELD,
|
||||||
|
LOCAL_VARIABLE,
|
||||||
|
METHOD,
|
||||||
|
PACKAGE,
|
||||||
|
PARAMETER,
|
||||||
|
TYPE
|
||||||
|
}
|
17
classpath/java/lang/annotation/Target.java
Normal file
17
classpath/java/lang/annotation/Target.java
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/* Copyright (c) 2012, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
|
package java.lang.annotation;
|
||||||
|
|
||||||
|
@Retention(value=RetentionPolicy.RUNTIME)
|
||||||
|
@Target(value=ElementType.ANNOTATION_TYPE)
|
||||||
|
public @interface Target {
|
||||||
|
public ElementType[] value();
|
||||||
|
}
|
Reference in New Issue
Block a user