FileDocCategorySizeDatePackage
Form31t.javaAPI DocAndroid 5.1 API2743Thu Mar 12 22:18:30 GMT 2015com.android.dexgen.dex.code.form

Form31t

public final class Form31t extends com.android.dexgen.dex.code.InsnFormat
Instruction format {@code 31t}. 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 Form31t()
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}

        return true;
    
public intcodeSize()
{@inheritDoc}

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

        RegisterSpecList regs = insn.getRegisters();
        return regs.get(0).regString() + ", " + 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}

        RegisterSpecList regs = insn.getRegisters();

        if (!((insn instanceof TargetInsn) &&
              (regs.size() == 1) &&
              unsignedFitsInByte(regs.get(0).getReg()))) {
            return false;
        }

        return true;
    
public com.android.dexgen.dex.code.InsnFormatnextUp()
{@inheritDoc}

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

        RegisterSpecList regs = insn.getRegisters();
        int offset = ((TargetInsn) insn).getTargetOffset();

        write(out, opcodeUnit(insn, regs.get(0).getReg()),
                (short) offset,
                (short) (offset >> 16));