| Package | Description |
|---|---|
| com.android.dx.cf.attrib |
Implementation of containers and utilities for all the standard Java
attribute types.
|
| com.android.dx.cf.code |
Implementation of classes having to do with Java simulation, such as
is needed for verification or stack-to-register conversion.
|
| com.android.dx.cf.direct |
Implementation of
cf.iface.* based on a direct representation
of class files as byte[]s. |
| com.android.dx.dex.code | |
| com.android.dx.dex.file | |
| com.android.dx.rop.annotation | |
| com.android.dx.rop.code |
Classes relating to a register-based opcode system.
|
| com.android.dx.rop.cst |
Interfaces and implementation of things related to the constant pool.
|
| Modifier and Type | Method and Description |
|---|---|
Constant |
AttAnnotationDefault.getValue()
Gets the annotation default value.
|
| Constructor and Description |
|---|
AttAnnotationDefault(Constant value,
int byteLength)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Constant |
BootstrapMethodArgumentsList.get(int n)
Gets the bootstrap argument from the indicated position.
|
protected Constant |
BaseMachine.getAuxCst()
Gets the constant auxiliary argument.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.ArrayList<Constant> |
BaseMachine.getInitValues()
Gets the init values auxiliary argument.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Machine.auxCstArg(Constant cst)
Indicates that there is an auxiliary (inline, not stack) object
argument, with the value based on the given constant.
|
void |
BaseMachine.auxCstArg(Constant cst)
Indicates that there is an auxiliary (inline, not stack) object
argument, with the value based on the given constant.
|
void |
BootstrapMethodArgumentsList.set(int n,
Constant cst)
Sets the bootstrap argument at the indicated position.
|
void |
BytecodeArray.Visitor.visitConstant(int opcode,
int offset,
int length,
Constant cst,
int value)
Visits an instruction which has a (possibly synthetic)
constant argument, and possibly also an
additional literal integer argument.
|
void |
BytecodeArray.BaseVisitor.visitConstant(int opcode,
int offset,
int length,
Constant cst,
int value)
Visits an instruction which has a (possibly synthetic)
constant argument, and possibly also an
additional literal integer argument.
|
void |
BasicBlocker.visitConstant(int opcode,
int offset,
int length,
Constant cst,
int value)
Visits an instruction which has a (possibly synthetic)
constant argument, and possibly also an
additional literal integer argument.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Machine.auxInitValues(java.util.ArrayList<Constant> initValues)
Indicates that there is an auxiliary (inline, not stack) argument
consisting of a list of initial values for a newly created array.
|
void |
BaseMachine.auxInitValues(java.util.ArrayList<Constant> initValues)
Indicates that there is an auxiliary (inline, not stack) argument
consisting of a list of initial values for a newly created array.
|
void |
BytecodeArray.Visitor.visitNewarray(int offset,
int length,
CstType type,
java.util.ArrayList<Constant> initVals)
Visits a newarray instruction.
|
void |
BytecodeArray.BaseVisitor.visitNewarray(int offset,
int length,
CstType type,
java.util.ArrayList<Constant> initValues)
Visits a newarray instruction.
|
void |
BasicBlocker.visitNewarray(int offset,
int length,
CstType type,
java.util.ArrayList<Constant> intVals)
Visits a newarray instruction.
|
| Modifier and Type | Method and Description |
|---|---|
Constant |
AnnotationParser.parseValueAttribute()
Parses an annotation value (
element_value) attribute. |
| Modifier and Type | Method and Description |
|---|---|
void |
CodeObserver.visitConstant(int opcode,
int offset,
int length,
Constant cst,
int value)
Visits an instruction which has a (possibly synthetic)
constant argument, and possibly also an
additional literal integer argument.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodeObserver.visitNewarray(int offset,
int length,
CstType cst,
java.util.ArrayList<Constant> intVals)
Visits a newarray instruction.
|
| Modifier and Type | Method and Description |
|---|---|
Constant |
CstInsn.getConstant()
Gets the constant argument.
|
Constant |
MultiCstInsn.getConstant(int position)
Gets a constant associated with the instruction.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.HashSet<Constant> |
OutputFinisher.getAllConstants()
Returns the set of all constants referred to by instructions added
to this instance.
|
java.util.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,
java.util.ArrayList<Constant> values,
Constant arrayType)
Constructs an instance.
|
CstInsn(Dop opcode,
SourcePosition position,
RegisterSpecList registers,
Constant constant)
Constructs an instance.
|
MultiCstInsn(Dop opcode,
SourcePosition position,
RegisterSpecList registers,
Constant[] constants)
Constructs an instance.
|
| Constructor and Description |
|---|
ArrayData(SourcePosition position,
CodeAddress user,
java.util.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 java.lang.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.
|
IndexedItem |
TypeIdsSection.get(Constant cst)
Gets the item corresponding to the given
Constant. |
IndexedItem |
ClassDefsSection.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 |
HeaderSection.get(Constant cst)
Gets the item corresponding to the given
Constant. |
IndexedItem |
CallSiteIdsSection.get(Constant cst)
Gets the item corresponding to the given
Constant. |
IndexedItem |
MethodHandlesSection.get(Constant cst) |
IndexedItem |
ProtoIdsSection.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 |
MethodIdsSection.get(Constant cst)
Gets the item corresponding to the given
Constant. |
abstract IndexedItem |
UniformItemSection.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 |
CstInsn.getConstant()
Gets the constant.
|
Constant |
FillArrayDataInsn.getConstant()
Return the type of the newly created array
|
| Modifier and Type | Method and Description |
|---|---|
java.util.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,
java.util.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,
java.util.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 |
CstCallSite
Constant type to represent a call site.
|
class |
CstCallSiteRef
Reference to a call site.
|
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 |
CstInvokeDynamic
Constants of type
InvokeDynamic. |
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 |
CstMethodHandle
Constants of type
MethodHandle. |
class |
CstMethodRef
Constants of type
CONSTANT_Methodref_info. |
class |
CstNat
Constants of type
CONSTANT_NameAndType_info. |
class |
CstProtoRef
Prototype reference.
|
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 |
ConstantPool.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 |
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.getEntries()
Get all entries in this constant pool.
|
Constant[] |
ConstantPool.getEntries()
Get all entries in this constant pool.
|
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. |
Constant |
CstMethodHandle.getRef()
Gets the actual constant.
|
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 |
CstAnnotation.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 |
CstCallSite.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.
|
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 |
CstCallSiteRef.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 |
CstLiteral64.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected int |
CstProtoRef.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
protected int |
CstInvokeDynamic.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 |
CstMethodHandle.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
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 |
CstFieldRef.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 |
CstString.compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
static CstMethodHandle |
CstMethodHandle.make(int type,
Constant ref)
Makes an instance for the given value.
|
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 © 2020. All Rights Reserved.