encoded_values and parts
thereof.
| Modifier and Type | Field and Description |
|---|---|
| private final DexFile | file
|
| private final AnnotatedOutput | out
|
| private static final int | VALUE_ANNOTATION
annotation value type constant: |
| private static final int | VALUE_ARRAY
annotation value type constant: |
| private static final int | VALUE_BOOLEAN
annotation value type constant: |
| private static final int | VALUE_BYTE
annotation value type constant: |
| private static final int | VALUE_CHAR
annotation value type constant: |
| private static final int | VALUE_DOUBLE
annotation value type constant: |
| private static final int | VALUE_ENUM
annotation value type constant: |
| private static final int | VALUE_FIELD
annotation value type constant: |
| private static final int | VALUE_FLOAT
annotation value type constant: |
| private static final int | VALUE_INT
annotation value type constant: |
| private static final int | VALUE_LONG
annotation value type constant: |
| private static final int | VALUE_METHOD
annotation value type constant: |
| private static final int | VALUE_NULL
annotation value type constant: |
| private static final int | VALUE_SHORT
annotation value type constant: |
| private static final int | VALUE_STRING
annotation value type constant: |
| private static final int | VALUE_TYPE
annotation value type constant: |
| Access | Constructor and Description |
|---|---|
| public | ValueEncoder(DexFile
non-null; file being writtennon-null; output stream to write toConstruct an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public static void | addContents(DexFile
non-null; the file to add tonon-null; the annotation to add contents forHelper for |
| public static void | addContents(DexFile
non-null; the file to add tonon-null; the constant to add contents forHelper for |
| public static String | Returns: non-null; its type name and human formnon-null; the constantGets the colloquial type name and human form of the type of the given constant, when used as an encoded value. |
| private static int | Returns: the value type; one of theVALUE_* constants
defined by this classnon-null; the constantGets the value type for the given constant. |
| public void | writeAnnotation(Annotation
non-null; annotation instance to writetrue iff the given annotation is the
top-level annotation or false if it is a sub-annotation
of some other annotationWrites out the encoded form of the given annotation, that is,
as an |
| public void | writeArray(CstArray
non-null; array instance to writetrue iff the given annotation is the
top-level annotation or false if it is a sub-annotation
of some other annotationWrites out the encoded form of the given array, that is, as
an |
| public void | writeConstant(Constant
non-null; the constant to writeWrites out the encoded form of the given constant. |
| private void | writeRightZeroExtendedValue(int
the type constant type, long long bits of the valueHelper for |
| private void | writeSignedIntegralValue(int
the type constant type, long long bits of the valueHelper for |
| private void | writeUnsignedIntegralValue(int
the type constant type, long long bits of the valueHelper for |
| file | back to summary |
|---|---|
| private final DexFile file
| |
| out | back to summary |
|---|---|
| private final AnnotatedOutput out
| |
| VALUE_ANNOTATION | back to summary |
|---|---|
| private static final int VALUE_ANNOTATION annotation value type constant: | |
| VALUE_ARRAY | back to summary |
|---|---|
| private static final int VALUE_ARRAY annotation value type constant: | |
| VALUE_BOOLEAN | back to summary |
|---|---|
| private static final int VALUE_BOOLEAN annotation value type constant: | |
| VALUE_BYTE | back to summary |
|---|---|
| private static final int VALUE_BYTE annotation value type constant: | |
| VALUE_CHAR | back to summary |
|---|---|
| private static final int VALUE_CHAR annotation value type constant: | |
| VALUE_DOUBLE | back to summary |
|---|---|
| private static final int VALUE_DOUBLE annotation value type constant: | |
| VALUE_ENUM | back to summary |
|---|---|
| private static final int VALUE_ENUM annotation value type constant: | |
| VALUE_FIELD | back to summary |
|---|---|
| private static final int VALUE_FIELD annotation value type constant: | |
| VALUE_FLOAT | back to summary |
|---|---|
| private static final int VALUE_FLOAT annotation value type constant: | |
| VALUE_INT | back to summary |
|---|---|
| private static final int VALUE_INT annotation value type constant: | |
| VALUE_LONG | back to summary |
|---|---|
| private static final int VALUE_LONG annotation value type constant: | |
| VALUE_METHOD | back to summary |
|---|---|
| private static final int VALUE_METHOD annotation value type constant: | |
| VALUE_NULL | back to summary |
|---|---|
| private static final int VALUE_NULL annotation value type constant: | |
| VALUE_SHORT | back to summary |
|---|---|
| private static final int VALUE_SHORT annotation value type constant: | |
| VALUE_STRING | back to summary |
|---|---|
| private static final int VALUE_STRING annotation value type constant: | |
| VALUE_TYPE | back to summary |
|---|---|
| private static final int VALUE_TYPE annotation value type constant: | |
| ValueEncoder | back to summary |
|---|---|
| public ValueEncoder(DexFile file, AnnotatedOutput out) Construct an instance.
| |
| addContents | back to summary |
|---|---|
| public static void addContents(DexFile file, Annotation annotation) Helper for
| |
| addContents | back to summary |
|---|---|
| public static void addContents(DexFile file, Constant cst) Helper for | |
| constantToHuman | back to summary |
|---|---|
| public static String constantToHuman(Constant cst) Gets the colloquial type name and human form of the type of the given constant, when used as an encoded value. | |
| constantToValueType | back to summary |
|---|---|
| private static int constantToValueType(Constant cst) Gets the value type for the given constant.
| |
| writeAnnotation | back to summary |
|---|---|
| public void writeAnnotation(Annotation annotation, boolean topLevel) Writes out the encoded form of the given annotation, that is,
as an
| |
| writeArray | back to summary |
|---|---|
| public void writeArray(CstArray array, boolean topLevel) Writes out the encoded form of the given array, that is, as
an
| |
| writeConstant | back to summary |
|---|---|
| public void writeConstant(Constant cst) Writes out the encoded form of the given constant.
| |
| writeRightZeroExtendedValue | back to summary |
|---|---|
| private void writeRightZeroExtendedValue(int type, long value) Helper for
| |
| writeSignedIntegralValue | back to summary |
|---|---|
| private void writeSignedIntegralValue(int type, long value) Helper for
| |
| writeUnsignedIntegralValue | back to summary |
|---|---|
| private void writeUnsignedIntegralValue(int type, long value) Helper for
| |