com.android.dx.io
Class EncodedValueReader

java.lang.Object
  extended by com.android.dx.io.EncodedValueReader

public class EncodedValueReader
extends Object

SAX-style reader for encoded values. TODO: convert this to a pull-style reader


Field Summary
static int ENCODED_ANNOTATION
           
static int ENCODED_ARRAY
           
static int ENCODED_BOOLEAN
           
static int ENCODED_BYTE
           
static int ENCODED_CHAR
           
static int ENCODED_DOUBLE
           
static int ENCODED_ENUM
           
static int ENCODED_FIELD
           
static int ENCODED_FLOAT
           
static int ENCODED_INT
           
static int ENCODED_LONG
           
static int ENCODED_METHOD
           
static int ENCODED_NULL
           
static int ENCODED_SHORT
           
static int ENCODED_STRING
           
static int ENCODED_TYPE
           
protected  ByteInput in
           
 
Constructor Summary
EncodedValueReader(ByteInput in)
           
EncodedValueReader(EncodedValue in)
           
 
Method Summary
 void readAnnotation()
           
 void readArray()
           
 void readValue()
           
protected  void visitAnnotation(int typeIndex, int size)
           
protected  void visitAnnotationName(int nameIndex)
           
protected  void visitAnnotationValue(int argAndType)
           
protected  void visitArray(int size)
           
protected  void visitArrayValue(int argAndType)
           
protected  void visitEncodedBoolean(int argAndType)
           
protected  void visitEncodedNull(int argAndType)
           
protected  void visitField(int type, int index)
           
protected  void visitMethod(int type, int index)
           
protected  void visitPrimitive(int argAndType, int type, int arg, int size)
           
protected  void visitString(int type, int index)
           
protected  void visitType(int type, int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODED_BYTE

public static final int ENCODED_BYTE
See Also:
Constant Field Values

ENCODED_SHORT

public static final int ENCODED_SHORT
See Also:
Constant Field Values

ENCODED_CHAR

public static final int ENCODED_CHAR
See Also:
Constant Field Values

ENCODED_INT

public static final int ENCODED_INT
See Also:
Constant Field Values

ENCODED_LONG

public static final int ENCODED_LONG
See Also:
Constant Field Values

ENCODED_FLOAT

public static final int ENCODED_FLOAT
See Also:
Constant Field Values

ENCODED_DOUBLE

public static final int ENCODED_DOUBLE
See Also:
Constant Field Values

ENCODED_STRING

public static final int ENCODED_STRING
See Also:
Constant Field Values

ENCODED_TYPE

public static final int ENCODED_TYPE
See Also:
Constant Field Values

ENCODED_FIELD

public static final int ENCODED_FIELD
See Also:
Constant Field Values

ENCODED_ENUM

public static final int ENCODED_ENUM
See Also:
Constant Field Values

ENCODED_METHOD

public static final int ENCODED_METHOD
See Also:
Constant Field Values

ENCODED_ARRAY

public static final int ENCODED_ARRAY
See Also:
Constant Field Values

ENCODED_ANNOTATION

public static final int ENCODED_ANNOTATION
See Also:
Constant Field Values

ENCODED_NULL

public static final int ENCODED_NULL
See Also:
Constant Field Values

ENCODED_BOOLEAN

public static final int ENCODED_BOOLEAN
See Also:
Constant Field Values

in

protected final ByteInput in
Constructor Detail

EncodedValueReader

public EncodedValueReader(ByteInput in)

EncodedValueReader

public EncodedValueReader(EncodedValue in)
Method Detail

readArray

public final void readArray()

readAnnotation

public final void readAnnotation()

readValue

public final void readValue()

visitArray

protected void visitArray(int size)

visitAnnotation

protected void visitAnnotation(int typeIndex,
                               int size)

visitAnnotationName

protected void visitAnnotationName(int nameIndex)

visitPrimitive

protected void visitPrimitive(int argAndType,
                              int type,
                              int arg,
                              int size)

visitString

protected void visitString(int type,
                           int index)

visitType

protected void visitType(int type,
                         int index)

visitField

protected void visitField(int type,
                          int index)

visitMethod

protected void visitMethod(int type,
                           int index)

visitArrayValue

protected void visitArrayValue(int argAndType)

visitAnnotationValue

protected void visitAnnotationValue(int argAndType)

visitEncodedBoolean

protected void visitEncodedBoolean(int argAndType)

visitEncodedNull

protected void visitEncodedNull(int argAndType)


Copyright © 2012. All Rights Reserved.