Methods Summary |
---|
public boolean | branchFits(com.android.dx.dex.code.TargetInsn insn){@inheritDoc}
int offset = insn.getTargetOffset();
// Note: A zero offset would fit, but it is prohibited by the spec.
return (offset != 0) && signedFitsInByte(offset);
|
public int | codeSize(){@inheritDoc}
return 1;
|
public java.lang.String | insnArgString(com.android.dx.dex.code.DalvInsn insn){@inheritDoc}
return branchString(insn);
|
public java.lang.String | insnCommentString(com.android.dx.dex.code.DalvInsn insn, boolean noteIndices){@inheritDoc}
return branchComment(insn);
|
public boolean | isCompatible(com.android.dx.dex.code.DalvInsn insn){@inheritDoc}
if (!((insn instanceof TargetInsn) &&
(insn.getRegisters().size() == 0))) {
return false;
}
TargetInsn ti = (TargetInsn) insn;
return ti.hasTargetOffset() ? branchFits(ti) : true;
|
public com.android.dx.dex.code.InsnFormat | nextUp(){@inheritDoc}
return Form20t.THE_ONE;
|
public void | writeTo(com.android.dx.util.AnnotatedOutput out, com.android.dx.dex.code.DalvInsn insn){@inheritDoc}
int offset = ((TargetInsn) insn).getTargetOffset();
write(out, opcodeUnit(insn, (offset & 0xff)));
|