public abstract class FieldInstruction extends DexlibAbstractInstruction
codeAddress, instruction, lineNumber, unit
Constructor and Description |
---|
FieldInstruction(Instruction instruction,
int codeAdress) |
Modifier and Type | Method and Description |
---|---|
protected AssignStmt |
getAssignStmt(DexBody body,
Local sourceValue,
ConcreteRef instanceField)
Check if the field type equals the type of the value that will be stored in the field.
|
protected SootFieldRef |
getSootFieldRef(FieldReference fref)
Return a SootFieldRef for a dexlib FieldReference.
|
protected SootFieldRef |
getStaticSootFieldRef(FieldReference fref)
Return a static SootFieldRef for a dexlib FieldReference.
|
protected Type |
getTargetType(DexBody body)
Return the target type for put instructions.
|
java.util.Set<Type> |
introducedTypes()
Return the types that are be introduced by this instruction.
|
addTags, getInstruction, getLineNumber, getUnit, getUsedRegistersNums, getUsedRegistersNums, jimplify, setLineNumber, setUnit
public FieldInstruction(Instruction instruction, int codeAdress)
protected SootFieldRef getStaticSootFieldRef(FieldReference fref)
item
- the dexlib FieldReference.protected SootFieldRef getSootFieldRef(FieldReference fref)
item
- the dexlib FieldReference.protected AssignStmt getAssignStmt(DexBody body, Local sourceValue, ConcreteRef instanceField)
protected Type getTargetType(DexBody body)
body
- the body containing this instructionpublic java.util.Set<Type> introducedTypes()
DexlibAbstractInstruction
introducedTypes
in class DexlibAbstractInstruction