Enum BinaryResourceValue.Type
- java.lang.Object
-
- java.lang.Enum<BinaryResourceValue.Type>
-
- com.google.devrel.gmscore.tools.apk.arsc.BinaryResourceValue.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BinaryResourceValue.Type>
- Enclosing class:
- BinaryResourceValue
public static enum BinaryResourceValue.Type extends java.lang.Enum<BinaryResourceValue.Type>
Resource type codes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTRIBUTEdataholds an attribute resource identifier.DIMENSIONdataholds a complex number encoding a dimension value, such as "100in".DYNAMIC_ATTRIBUTEdataholds a dynamic attribute resource identifier.DYNAMIC_REFERENCEdataholds a dynamicResourceTableChunkentry reference.FLOATdataholds a single-precision floating point number.FRACTIONdataholds a complex number encoding a fraction of a container.INT_BOOLEANdatais either 0 (false) or 1 (true).INT_COLOR_ARGB4datais a raw integer value of the form #argb.INT_COLOR_ARGB8datais a raw integer value of the form #aarrggbb.INT_COLOR_RGB4datais a raw integer value of the form #rgb.INT_COLOR_RGB8datais a raw integer value of the form #rrggbb.INT_DECdatais a raw integer value of the form n..n.INT_HEXdatais a raw integer value of the form 0xn..n.NULLdatais either 0 (undefined) or 1 (empty).REFERENCEdataholds aResourceTableChunkentry reference.STRINGdataholds an index into the containing resource table's string pool.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytecode()static BinaryResourceValue.TypefromCode(byte code)static BinaryResourceValue.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BinaryResourceValue.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final BinaryResourceValue.Type NULL
datais either 0 (undefined) or 1 (empty).
-
REFERENCE
public static final BinaryResourceValue.Type REFERENCE
dataholds aResourceTableChunkentry reference.
-
ATTRIBUTE
public static final BinaryResourceValue.Type ATTRIBUTE
dataholds an attribute resource identifier.
-
STRING
public static final BinaryResourceValue.Type STRING
dataholds an index into the containing resource table's string pool.
-
FLOAT
public static final BinaryResourceValue.Type FLOAT
dataholds a single-precision floating point number.
-
DIMENSION
public static final BinaryResourceValue.Type DIMENSION
dataholds a complex number encoding a dimension value, such as "100in".
-
FRACTION
public static final BinaryResourceValue.Type FRACTION
dataholds a complex number encoding a fraction of a container.
-
DYNAMIC_REFERENCE
public static final BinaryResourceValue.Type DYNAMIC_REFERENCE
dataholds a dynamicResourceTableChunkentry reference.
-
DYNAMIC_ATTRIBUTE
public static final BinaryResourceValue.Type DYNAMIC_ATTRIBUTE
dataholds a dynamic attribute resource identifier.
-
INT_DEC
public static final BinaryResourceValue.Type INT_DEC
datais a raw integer value of the form n..n.
-
INT_HEX
public static final BinaryResourceValue.Type INT_HEX
datais a raw integer value of the form 0xn..n.
-
INT_BOOLEAN
public static final BinaryResourceValue.Type INT_BOOLEAN
datais either 0 (false) or 1 (true).
-
INT_COLOR_ARGB8
public static final BinaryResourceValue.Type INT_COLOR_ARGB8
datais a raw integer value of the form #aarrggbb.
-
INT_COLOR_RGB8
public static final BinaryResourceValue.Type INT_COLOR_RGB8
datais a raw integer value of the form #rrggbb.
-
INT_COLOR_ARGB4
public static final BinaryResourceValue.Type INT_COLOR_ARGB4
datais a raw integer value of the form #argb.
-
INT_COLOR_RGB4
public static final BinaryResourceValue.Type INT_COLOR_RGB4
datais a raw integer value of the form #rgb.
-
-
Method Detail
-
values
public static BinaryResourceValue.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BinaryResourceValue.Type c : BinaryResourceValue.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BinaryResourceValue.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
code
public byte code()
-
fromCode
public static BinaryResourceValue.Type fromCode(byte code)
-
-