public static enum InspectableProperty.ValueType extends java.lang.Enum<InspectableProperty.ValueType>
Enum Constant and Description |
---|
COLOR
Value packs color information.
|
GRAVITY
Value packs gravity information.
|
INFERRED
The default the annotation processor infers the value type from context.
|
INT_ENUM
Value packs an enumeration.
|
INT_FLAG
Value packs flags, of which many may be enabled at once.
|
NONE
No special handling, property is considered to be a numeric value.
|
RESOURCE_ID
Value is a resource ID
This type is inferred from the presence of a resource ID annotation such as
AnyRes . |
Modifier and Type | Method and Description |
---|---|
static InspectableProperty.ValueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InspectableProperty.ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InspectableProperty.ValueType NONE
public static final InspectableProperty.ValueType INFERRED
public static final InspectableProperty.ValueType INT_ENUM
InspectableProperty.enumMapping()
is specified.InspectableProperty.EnumEntry
public static final InspectableProperty.ValueType INT_FLAG
InspectableProperty.flagMapping()
is specified.InspectableProperty.FlagEntry
public static final InspectableProperty.ValueType COLOR
public static final InspectableProperty.ValueType GRAVITY
InspectableProperty.FlagEntry
.public static final InspectableProperty.ValueType RESOURCE_ID
AnyRes
.public static InspectableProperty.ValueType[] values()
for (InspectableProperty.ValueType c : InspectableProperty.ValueType.values()) System.out.println(c);
public static InspectableProperty.ValueType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null