本文整理匯總了Java中org.jf.dexlib.FieldIdItem類的典型用法代碼示例。如果您正苦於以下問題:Java FieldIdItem類的具體用法?Java FieldIdItem怎麽用?Java FieldIdItem使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
FieldIdItem類屬於org.jf.dexlib包,在下文中一共展示了FieldIdItem類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: findFieldsSetInStaticConstructor
import org.jf.dexlib.FieldIdItem; //導入依賴的package包/類
private void findFieldsSetInStaticConstructor() {
fieldsSetInStaticConstructor = new SparseArray<FieldIdItem>();
if (classDataItem == null) {
return;
}
for (ClassDataItem.EncodedMethod directMethod: classDataItem.getDirectMethods()) {
if (directMethod.method.getMethodName().getStringValue().equals("<clinit>") &&
directMethod.codeItem != null) {
for (Instruction instruction: directMethod.codeItem.getInstructions()) {
switch (instruction.opcode) {
case SPUT:
case SPUT_BOOLEAN:
case SPUT_BYTE:
case SPUT_CHAR:
case SPUT_OBJECT:
case SPUT_SHORT:
case SPUT_WIDE:
Instruction21c ins = (Instruction21c)instruction;
FieldIdItem fieldIdItem = (FieldIdItem)ins.getReferencedItem();
fieldsSetInStaticConstructor.put(fieldIdItem.getIndex(), fieldIdItem);
}
}
}
}
}
示例2: writeTo
import org.jf.dexlib.FieldIdItem; //導入依賴的package包/類
public static void writeTo(IndentingWriter writer, FieldIdItem item) throws IOException {
writer.write(".enum ");
ReferenceFormatter.writeFieldReference(writer, item);
}
示例3: Instruction22csf
import org.jf.dexlib.FieldIdItem; //導入依賴的package包/類
public Instruction22csf(Opcode opcode, Instruction22cs unfixedInstruction, FieldIdItem field) {
//the opcode should be the "fixed" opcode. i.e. iget-object, etc. (NOT the "quick" version)
super(opcode, field);
this.unfixedInstruction = unfixedInstruction;
}
示例4: EnumEncodedValue
import org.jf.dexlib.FieldIdItem; //導入依賴的package包/類
/**
* Constructs a new <code>EnumEncodedValue</code> with the given <code>FieldIdItem</code> value
* @param value The <code>FieldIdItem</code> value
*/
public EnumEncodedValue(FieldIdItem value) {
this.value = value;
}
示例5: FieldEncodedValue
import org.jf.dexlib.FieldIdItem; //導入依賴的package包/類
/**
* Constructs a new <code>FieldEncodedValue</code> with the given <code>FieldIdItem</code> value
* @param value The <code>FieldIdItem</code> value
*/
public FieldEncodedValue(FieldIdItem value) {
this.value = value;
}