@Retention(value=SOURCE)
 @Target(value={FIELD,PARAMETER,LOCAL_VARIABLE,ANNOTATION_TYPE,METHOD})
public @interface MagicConstant
| Modifier and Type | Optional Element and Description | 
|---|---|
long[] | 
flags
Indicates that the allowed values for the target are those either found in the specified
 array (of constant int/long values) or a value produced by combining one or more
 of them using the bitwise OR operator (|). 
 | 
java.lang.Class | 
flagsFromClass
Indicates that the allowed values for the argument are the public static final fields
 declared in the given class, or a value produced by combining one or more
 of them using the bitwise OR operator (|). 
 | 
long[] | 
intValues
Indicates that the allowed values for the target are those found in the specified
 array of constant int or long values. 
 | 
java.lang.String[] | 
stringValues
Indicates that the allowed values for the target are those found in the specified
 array of constant String values. 
 | 
java.lang.Class | 
valuesFromClass
Indicates that the allowed values for the argument are the public static final fields
 declared in the given class. 
 | 
public abstract long[] flags
public abstract java.lang.Class flagsFromClass
public abstract long[] intValues