FileDocCategorySizeDatePackage
Form10t.javaAPI DocAndroid 5.1 API2630Thu Mar 12 22:18:28 GMT 2015com.android.dexgen.dex.code.form

Form10t

public final class Form10t extends com.android.dexgen.dex.code.InsnFormat
Instruction format {@code 10t}. See the instruction format spec for details.

Fields Summary
public static final com.android.dexgen.dex.code.InsnFormat
THE_ONE
{@code non-null;} unique instance of this class
Constructors Summary
private Form10t()
Constructs an instance. This class is not publicly instantiable. Use {@link #THE_ONE}.


                     
      
        // This space intentionally left blank.
    
Methods Summary
public booleanbranchFits(com.android.dexgen.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 intcodeSize()
{@inheritDoc}

        return 1;
    
public java.lang.StringinsnArgString(com.android.dexgen.dex.code.DalvInsn insn)
{@inheritDoc}

        return branchString(insn);
    
public java.lang.StringinsnCommentString(com.android.dexgen.dex.code.DalvInsn insn, boolean noteIndices)
{@inheritDoc}

        return branchComment(insn);
    
public booleanisCompatible(com.android.dexgen.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.dexgen.dex.code.InsnFormatnextUp()
{@inheritDoc}

        return Form20t.THE_ONE;
    
public voidwriteTo(com.android.dexgen.util.AnnotatedOutput out, com.android.dexgen.dex.code.DalvInsn insn)
{@inheritDoc}

        int offset = ((TargetInsn) insn).getTargetOffset();

        write(out, opcodeUnit(insn, (offset & 0xff)));