51 lines
1 KiB
Java
51 lines
1 KiB
Java
package androidx.annotation;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
@Target({ElementType.METHOD})
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface InspectableProperty {
|
|
|
|
@Target({ElementType.TYPE})
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface EnumEntry {
|
|
String name();
|
|
|
|
int value();
|
|
}
|
|
|
|
@Target({ElementType.TYPE})
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface FlagEntry {
|
|
int mask() default 0;
|
|
|
|
String name();
|
|
|
|
int target();
|
|
}
|
|
|
|
public enum ValueType {
|
|
NONE,
|
|
INFERRED,
|
|
INT_ENUM,
|
|
INT_FLAG,
|
|
COLOR,
|
|
GRAVITY,
|
|
RESOURCE_ID
|
|
}
|
|
|
|
int attributeId() default 0;
|
|
|
|
EnumEntry[] enumMapping() default {};
|
|
|
|
FlagEntry[] flagMapping() default {};
|
|
|
|
boolean hasAttributeId() default true;
|
|
|
|
String name() default "";
|
|
|
|
ValueType valueType() default ValueType.INFERRED;
|
|
}
|