Package com.googlecode.d2j.dex.writer.ev
Class EncodedValue
- java.lang.Object
-
- com.googlecode.d2j.dex.writer.ev.EncodedValue
-
- All Implemented Interfaces:
java.lang.Comparable<EncodedValue>
public class EncodedValue extends java.lang.Object implements java.lang.Comparable<EncodedValue>
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Objectvaluestatic intVALUE_ANNOTATIONstatic intVALUE_ARRAYstatic intVALUE_BOOLEANstatic intVALUE_BYTEstatic intVALUE_CHARstatic intVALUE_DOUBLEstatic intVALUE_ENUMstatic intVALUE_FIELDstatic intVALUE_FLOATstatic intVALUE_INTstatic intVALUE_LONGstatic intVALUE_METHODstatic intVALUE_METHOD_HANDLEstatic intVALUE_METHOD_TYPEstatic intVALUE_NULLstatic intVALUE_SHORTstatic intVALUE_STRINGstatic intVALUE_TYPEintvalueType
-
Constructor Summary
Constructors Constructor Description EncodedValue(int valueType, java.lang.Object value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(EncodedValue o)static EncodedValuedefaultValueForType(java.lang.String typeString)protected intdoPlace(int offset)booleanequals(java.lang.Object o)protected intgetValueArg()inthashCode()booleanisDefaultValueForType()static intlengthOfDouble(double value)static intlengthOfFloat(float value)static intlengthOfSint(int value)static intlengthOfSint(long value)static intlengthOfUint(int val)intplace(int offset)static EncodedValuewrap(java.lang.Object v)voidwrite(DataOut out)
-
-
-
Field Detail
-
VALUE_ANNOTATION
public static final int VALUE_ANNOTATION
- See Also:
- Constant Field Values
-
VALUE_ARRAY
public static final int VALUE_ARRAY
- See Also:
- Constant Field Values
-
VALUE_BOOLEAN
public static final int VALUE_BOOLEAN
- See Also:
- Constant Field Values
-
VALUE_BYTE
public static final int VALUE_BYTE
- See Also:
- Constant Field Values
-
VALUE_CHAR
public static final int VALUE_CHAR
- See Also:
- Constant Field Values
-
VALUE_DOUBLE
public static final int VALUE_DOUBLE
- See Also:
- Constant Field Values
-
VALUE_ENUM
public static final int VALUE_ENUM
- See Also:
- Constant Field Values
-
VALUE_FIELD
public static final int VALUE_FIELD
- See Also:
- Constant Field Values
-
VALUE_FLOAT
public static final int VALUE_FLOAT
- See Also:
- Constant Field Values
-
VALUE_INT
public static final int VALUE_INT
- See Also:
- Constant Field Values
-
VALUE_LONG
public static final int VALUE_LONG
- See Also:
- Constant Field Values
-
VALUE_METHOD_TYPE
public static final int VALUE_METHOD_TYPE
- See Also:
- Constant Field Values
-
VALUE_METHOD_HANDLE
public static final int VALUE_METHOD_HANDLE
- See Also:
- Constant Field Values
-
VALUE_METHOD
public static final int VALUE_METHOD
- See Also:
- Constant Field Values
-
VALUE_NULL
public static final int VALUE_NULL
- See Also:
- Constant Field Values
-
VALUE_SHORT
public static final int VALUE_SHORT
- See Also:
- Constant Field Values
-
VALUE_STRING
public static final int VALUE_STRING
- See Also:
- Constant Field Values
-
VALUE_TYPE
public static final int VALUE_TYPE
- See Also:
- Constant Field Values
-
valueType
public final int valueType
-
value
public java.lang.Object value
-
-
Method Detail
-
lengthOfDouble
public static int lengthOfDouble(double value)
-
lengthOfFloat
public static int lengthOfFloat(float value)
-
lengthOfSint
public static int lengthOfSint(int value)
-
lengthOfSint
public static int lengthOfSint(long value)
-
lengthOfUint
public static int lengthOfUint(int val)
-
wrap
public static EncodedValue wrap(java.lang.Object v)
-
defaultValueForType
public static EncodedValue defaultValueForType(java.lang.String typeString)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isDefaultValueForType
public boolean isDefaultValueForType()
-
doPlace
protected int doPlace(int offset)
-
getValueArg
protected int getValueArg()
-
place
public final int place(int offset)
-
write
public void write(DataOut out)
-
compareTo
public int compareTo(EncodedValue o)
- Specified by:
compareToin interfacejava.lang.Comparable<EncodedValue>
-
-