| Package | Description |
|---|---|
| com.android.dx.dex.code | |
| com.android.dx.dex.file | |
| com.android.dx.rop.annotation | |
| com.android.dx.rop.code | |
| com.android.dx.rop.cst |
| Modifier and Type | Method and Description |
|---|---|
Constant |
CstInsn.getConstant()
Gets the constant argument.
|
| Modifier and Type | Method and Description |
|---|---|
HashSet<Constant> |
OutputFinisher.getAllConstants()
Returns the set of all constants referred to by instructions added
to this instance.
|
HashSet<Constant> |
DalvCode.getInsnConstants()
Gets the set of all constants referred to by instructions in
the code.
|
| Modifier and Type | Method and Description |
|---|---|
int |
DalvCode.AssignIndicesCallback.getIndex(Constant cst)
Gets the index for the given constant.
|
| Constructor and Description |
|---|
ArrayData(SourcePosition position,
CodeAddress user,
ArrayList<Constant> values,
Constant arrayType)
Constructs an instance.
|
CstInsn(Dop opcode,
SourcePosition position,
RegisterSpecList registers,
Constant constant)
Constructs an instance.
|
| Constructor and Description |
|---|
ArrayData(SourcePosition position,
CodeAddress user,
ArrayList<Constant> values,
Constant arrayType)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ValueEncoder.addContents(DexFile file,
Constant cst)
Helper for
addContents() methods, which adds
contents for a particular constant, calling itself recursively
should it encounter a CstArray and calling ValueEncoder.addContents(DexFile,Annotation) recursively should it
encounter a CstAnnotation. |
void |
ClassDefItem.addStaticField(EncodedField field,
Constant value)
Adds a static field.
|
void |
ClassDataItem.addStaticField(EncodedField field,
Constant value)
Adds a static field.
|
static String |
ValueEncoder.constantToHuman(Constant cst)
Gets the colloquial type name and human form of the type of the
given constant, when used as an encoded value.
|
abstract IndexedItem |
UniformItemSection.get(Constant cst)
Gets the item corresponding to the given
Constant. |
IndexedItem |
TypeIdsSection.get(Constant cst)
Gets the item corresponding to the given
Constant. |
IndexedItem |
StringIdsSection.get(Constant cst)
Gets the item corresponding to the given
Constant. |
IndexedItem |
ProtoIdsSection.get(Constant cst)
Gets the item corresponding to the given
Constant. |
IndexedItem |
MethodIdsSection.get(Constant cst)
Gets the item corresponding to the given
Constant. |
IndexedItem |
HeaderSection.get(Constant cst)
Gets the item corresponding to the given
Constant. |
IndexedItem |
FieldIdsSection.get(Constant cst)
Gets the item corresponding to the given
Constant. |
IndexedItem |
ClassDefsSection.get(Constant cst)
Gets the item corresponding to the given
Constant. |
void |
ValueEncoder.writeConstant(Constant cst)
Writes out the encoded form of the given constant.
|
| Modifier and Type | Method and Description |
|---|---|
Constant |
NameValuePair.getValue()
Gets the value.
|
| Constructor and Description |
|---|
NameValuePair(CstString name,
Constant value)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Constant |
FillArrayDataInsn.getConstant()
Return the type of the newly created array
|
Constant |
CstInsn.getConstant()
Gets the constant.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList<Constant> |
FillArrayDataInsn.getInitValues()
Return the list of init values
|
| Modifier and Type | Method and Description |
|---|---|
static Rop |
Rops.ropFor(int opcode,
TypeBearer dest,
TypeList sources,
Constant cst)
Returns the appropriate rop for the given opcode, destination,
and sources.
|
| Constructor and Description |
|---|
CstInsn(Rop opcode,
SourcePosition position,
RegisterSpec result,
RegisterSpecList sources,
Constant cst)
Constructs an instance.
|
FillArrayDataInsn(Rop opcode,
SourcePosition position,
RegisterSpecList sources,
ArrayList<Constant> initValues,
Constant cst)
Constructs an instance.
|
PlainCstInsn(Rop opcode,
SourcePosition position,
RegisterSpec result,
RegisterSpecList sources,
Constant cst)
Constructs an instance.
|
ThrowingCstInsn(Rop opcode,
SourcePosition position,
RegisterSpecList sources,
TypeList catches,
Constant cst)
Constructs an instance.
|
| Constructor and Description |
|---|
FillArrayDataInsn(Rop opcode,
SourcePosition position,
RegisterSpecList sources,
ArrayList<Constant> initValues,
Constant cst)
Constructs an instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CstAnnotation
Constant type that represents an annotation.
|
class |
CstArray
Constant type to represent a fixed array of other constants.
|
class |
CstBaseMethodRef
Base class for constants of "methodish" type.
|
class |
CstBoolean
Constants of type
boolean. |
class |
CstByte
Constants of type
byte. |
class |
CstChar
Constants of type
char. |
class |
CstDouble
Constants of type
CONSTANT_Double_info. |
class |
CstEnumRef
Constant type to represent a reference to a particular constant
value of an enumerated type.
|
class |
CstFieldRef
Constants of type
CONSTANT_Fieldref_info. |
class |
CstFloat
Constants of type
CONSTANT_Float_info. |
class |
CstInteger
Constants of type
CONSTANT_Integer_info. |
class |
CstInterfaceMethodRef
Constants of type
CONSTANT_InterfaceMethodref_info. |
class |
CstKnownNull
Constant type to represent a known-
null value. |
class |
CstLiteral32
Constants which are literal 32-bit values of some sort.
|
class |
CstLiteral64
Constants which are literal 64-bit values of some sort.
|
class |
CstLiteralBits
Constants which are literal bitwise values of some sort.
|
class |
CstLong
Constants of type
CONSTANT_Long_info. |
class |
CstMemberRef
Constants of type
CONSTANT_*ref_info. |
class |
CstMethodRef
Constants of type
CONSTANT_Methodref_info. |
class |
CstNat
Constants of type
CONSTANT_NameAndType_info. |
class |
CstShort
Constants of type
short. |
class |
CstString
Constants of type
CONSTANT_Utf8_info or CONSTANT_String_info. |
class |
CstType
Constants that represent an arbitrary type (reference or primitive).
|
class |
TypedConstant
Base class for constants which implement
TypeBearer. |
| Modifier and Type | Method and Description |
|---|---|
Constant |
StdConstantPool.get(int n)
Get the
nth entry in the constant pool, which must
be valid. |
Constant |
CstArray.List.get(int n)
Gets the element at the given index.
|
Constant |
ConstantPool.get(int n)
Get the
nth entry in the constant pool, which must
be valid. |
Constant |
StdConstantPool.get0Ok(int n)
Get the
nth entry in the constant pool, which must
be valid unless n == 0, in which case null
is returned. |
Constant |
ConstantPool.get0Ok(int n)
Get the
nth entry in the constant pool, which must
be valid unless n == 0, in which case null
is returned. |
Constant |
StdConstantPool.getOrNull(int n)
Get the
nth entry in the constant pool, or
null if the index is in-range but invalid. |
Constant |
ConstantPool.getOrNull(int n)
Get the
nth entry in the constant pool, or
null if the index is in-range but invalid. |
static Constant |
Zeroes.zeroFor(Type type)
Gets the "zero" (or
null) value for the given type. |
| Modifier and Type | Method and Description |
|---|---|
int |
Constant.compareTo(Constant other)
This compares in class-major and value-minor order.
|
protected int |
CstType.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected int |
CstString.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected int |
CstNat.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected int |
CstMemberRef.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected int |
CstLiteral64.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected int |
CstLiteral32.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected int |
CstKnownNull.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected int |
CstFieldRef.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected int |
CstBaseMethodRef.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected int |
CstArray.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected int |
CstAnnotation.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected abstract int |
Constant.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
void |
StdConstantPool.set(int n,
Constant cst)
Sets the entry at the given index.
|
void |
CstArray.List.set(int n,
Constant a)
Sets the element at the given index.
|
Copyright © 2014. All Rights Reserved.