Package org.jf.baksmali.Adaptors

Examples of org.jf.baksmali.Adaptors.LabelMethodItem


        int baseCodeAddress = methodDef.getSparseSwitchBaseAddress(codeAddress);

        targets = new ArrayList<SparseSwitchTarget>();
        if (baseCodeAddress >= 0) {
            for (SwitchElement switchElement: instruction.getSwitchElements()) {
                LabelMethodItem label = methodDef.getLabelCache().internLabel(
                        new LabelMethodItem( methodDef.classDef.options, baseCodeAddress + switchElement.getOffset(),
                                "sswitch_"));
                targets.add(new SparseSwitchLabelTarget(switchElement.getKey(), label));
            }
        } else {
            //if we couldn't determine a base address, just use relative offsets rather than labels
View Full Code Here


            for (SwitchElement switchElement: instruction.getSwitchElements()) {
                if (first) {
                    firstKey = switchElement.getKey();
                    first = false;
                }
                LabelMethodItem label = methodDef.getLabelCache().internLabel(
                        new LabelMethodItem(methodDef.classDef.options, baseCodeAddress + switchElement.getOffset(),
                                "pswitch_"));
                targets.add(new PackedSwitchLabelTarget(label));
            }
        } else {
            for (SwitchElement switchElement: instruction.getSwitchElements()) {
View Full Code Here

    public OffsetInstructionFormatMethodItem(@Nonnull baksmaliOptions options, @Nonnull MethodDefinition methodDef,
                                             int codeAddress, OffsetInstruction instruction) {
        super(methodDef, codeAddress, instruction);

        label = new LabelMethodItem(options, codeAddress + instruction.getCodeOffset(), getLabelPrefix());
        label = methodDef.getLabelCache().internLabel(label);
    }
View Full Code Here

TOP

Related Classes of org.jf.baksmali.Adaptors.LabelMethodItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.