org.jf.dexlib2.builder.Label Java Examples
The following examples show how to use
org.jf.dexlib2.builder.Label.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BuilderPackedSwitchPayload.java From zjdroid with Apache License 2.0 | 5 votes |
public BuilderPackedSwitchPayload(final int startKey, @Nullable List<? extends Label> switchElements) { super(OPCODE); if (switchElements == null) { this.switchElements = ImmutableList.of(); } else { this.switchElements = Lists.newArrayList(); int key = startKey; for (Label target: switchElements) { this.switchElements.add(new BuilderSwitchElement(this, key++, target)); } } }
Example #2
Source File: BuilderInstruction22t.java From HeyGirl with Apache License 2.0 | 5 votes |
public BuilderInstruction22t(@Nonnull Opcode opcode, int registerA, int registerB, @Nonnull Label target) { super(opcode, target); this.registerA = Preconditions.checkNibbleRegister(registerA); this.registerB = Preconditions.checkNibbleRegister(registerB); }
Example #3
Source File: BuilderPackedSwitchPayload.java From HeyGirl with Apache License 2.0 | 5 votes |
public BuilderPackedSwitchPayload(final int startKey, @Nullable List<? extends Label> switchElements) { super(OPCODE); if (switchElements == null) { this.switchElements = ImmutableList.of(); } else { this.switchElements = Lists.newArrayList(); int key = startKey; for (Label target: switchElements) { this.switchElements.add(new BuilderSwitchElement(this, key++, target)); } } }
Example #4
Source File: LabelAssigner.java From JAADAS with GNU General Public License v3.0 | 5 votes |
public Label getOrCreateLabel(SwitchPayload payload) { if (payload == null) throw new RuntimeException("Cannot create label for NULL payload"); Label lbl = payloadToLabel.get(payload); if (lbl == null) { String labelName = "l" + lastLabelId++; lbl = builder.getLabel(labelName); payloadToLabel.put(payload, lbl); payloadToLabelName.put(payload, labelName); } return lbl; }
Example #5
Source File: LabelAssigner.java From JAADAS with GNU General Public License v3.0 | 5 votes |
public Label getOrCreateLabel(Stmt stmt) { if (stmt == null) throw new RuntimeException("Cannot create label for NULL statement"); Label lbl = stmtToLabel.get(stmt); if (lbl == null) { String labelName = "l" + lastLabelId++; lbl = builder.getLabel(labelName); stmtToLabel.put(stmt, lbl); stmtToLabelName.put(stmt, labelName); } return lbl; }
Example #6
Source File: PackedSwitchPayload.java From JAADAS with GNU General Public License v3.0 | 5 votes |
@Override protected BuilderInstruction getRealInsn0(LabelAssigner assigner) { List<Label> elements = new ArrayList<Label>(); for (int i = 0; i < targets.size(); i++) elements.add(assigner.getOrCreateLabel((Stmt) targets.get(i))); return new BuilderPackedSwitchPayload(firstKey, elements); }
Example #7
Source File: BuilderSwitchElement.java From HeyGirl with Apache License 2.0 | 5 votes |
public BuilderSwitchElement(@Nonnull BuilderSwitchPayload parent, int key, @Nonnull Label target) { this.parent = parent; this.key = key; this.target = target; }
Example #8
Source File: BuilderSwitchElement.java From zjdroid with Apache License 2.0 | 5 votes |
public BuilderSwitchElement(@Nonnull BuilderSwitchPayload parent, int key, @Nonnull Label target) { this.parent = parent; this.key = key; this.target = target; }
Example #9
Source File: BuilderInstruction22t.java From ZjDroid with Apache License 2.0 | 5 votes |
public BuilderInstruction22t(@Nonnull Opcode opcode, int registerA, int registerB, @Nonnull Label target) { super(opcode, target); this.registerA = Preconditions.checkNibbleRegister(registerA); this.registerB = Preconditions.checkNibbleRegister(registerB); }
Example #10
Source File: BuilderInstruction22t.java From zjdroid with Apache License 2.0 | 5 votes |
public BuilderInstruction22t(@Nonnull Opcode opcode, int registerA, int registerB, @Nonnull Label target) { super(opcode, target); this.registerA = Preconditions.checkNibbleRegister(registerA); this.registerB = Preconditions.checkNibbleRegister(registerB); }
Example #11
Source File: BuilderInstruction22t.java From ZjDroid with Apache License 2.0 | 5 votes |
public BuilderInstruction22t(@Nonnull Opcode opcode, int registerA, int registerB, @Nonnull Label target) { super(opcode, target); this.registerA = Preconditions.checkNibbleRegister(registerA); this.registerB = Preconditions.checkNibbleRegister(registerB); }
Example #12
Source File: BuilderPackedSwitchPayload.java From ZjDroid with Apache License 2.0 | 5 votes |
public BuilderPackedSwitchPayload(final int startKey, @Nullable List<? extends Label> switchElements) { super(OPCODE); if (switchElements == null) { this.switchElements = ImmutableList.of(); } else { this.switchElements = Lists.newArrayList(); int key = startKey; for (Label target: switchElements) { this.switchElements.add(new BuilderSwitchElement(this, key++, target)); } } }
Example #13
Source File: BuilderSwitchElement.java From ZjDroid with Apache License 2.0 | 5 votes |
public BuilderSwitchElement(@Nonnull BuilderSwitchPayload parent, int key, @Nonnull Label target) { this.parent = parent; this.key = key; this.target = target; }
Example #14
Source File: BuilderSwitchElement.java From ZjDroid with Apache License 2.0 | 5 votes |
public BuilderSwitchElement(@Nonnull BuilderSwitchPayload parent, int key, @Nonnull Label target) { this.parent = parent; this.key = key; this.target = target; }
Example #15
Source File: BuilderPackedSwitchPayload.java From ZjDroid with Apache License 2.0 | 5 votes |
public BuilderPackedSwitchPayload(final int startKey, @Nullable List<? extends Label> switchElements) { super(OPCODE); if (switchElements == null) { this.switchElements = ImmutableList.of(); } else { this.switchElements = Lists.newArrayList(); int key = startKey; for (Label target: switchElements) { this.switchElements.add(new BuilderSwitchElement(this, key++, target)); } } }
Example #16
Source File: BuilderInstruction21t.java From HeyGirl with Apache License 2.0 | 4 votes |
public BuilderInstruction21t(@Nonnull Opcode opcode, int registerA, @Nonnull Label target) { super(opcode, target); this.registerA = Preconditions.checkByteRegister(registerA); }
Example #17
Source File: BuilderInstruction30t.java From HeyGirl with Apache License 2.0 | 4 votes |
public BuilderInstruction30t(@Nonnull Opcode opcode, @Nonnull Label target) { super(opcode, target); }
Example #18
Source File: BuilderInstruction10t.java From HeyGirl with Apache License 2.0 | 4 votes |
public BuilderInstruction10t(@Nonnull Opcode opcode, @Nonnull Label target) { super(opcode, target); }
Example #19
Source File: BuilderInstruction31t.java From ZjDroid with Apache License 2.0 | 4 votes |
public BuilderInstruction31t(@Nonnull Opcode opcode, int registerA, @Nonnull Label target) { super(opcode, target); this.registerA = Preconditions.checkByteRegister(registerA); }
Example #20
Source File: BuilderInstruction20t.java From HeyGirl with Apache License 2.0 | 4 votes |
public BuilderInstruction20t(@Nonnull Opcode opcode, @Nonnull Label target) { super(opcode, target); }
Example #21
Source File: BuilderInstruction21t.java From ZjDroid with Apache License 2.0 | 4 votes |
public BuilderInstruction21t(@Nonnull Opcode opcode, int registerA, @Nonnull Label target) { super(opcode, target); this.registerA = Preconditions.checkByteRegister(registerA); }
Example #22
Source File: BuilderInstruction10t.java From ZjDroid with Apache License 2.0 | 4 votes |
public BuilderInstruction10t(@Nonnull Opcode opcode, @Nonnull Label target) { super(opcode, target); }
Example #23
Source File: BuilderInstruction20t.java From ZjDroid with Apache License 2.0 | 4 votes |
public BuilderInstruction20t(@Nonnull Opcode opcode, @Nonnull Label target) { super(opcode, target); }
Example #24
Source File: BuilderSwitchElement.java From HeyGirl with Apache License 2.0 | 4 votes |
@Nonnull public Label getTarget() { return target; }
Example #25
Source File: BuilderInstruction31t.java From ZjDroid with Apache License 2.0 | 4 votes |
public BuilderInstruction31t(@Nonnull Opcode opcode, int registerA, @Nonnull Label target) { super(opcode, target); this.registerA = Preconditions.checkByteRegister(registerA); }
Example #26
Source File: BuilderSwitchElement.java From ZjDroid with Apache License 2.0 | 4 votes |
@Nonnull public Label getTarget() { return target; }
Example #27
Source File: BuilderInstruction30t.java From ZjDroid with Apache License 2.0 | 4 votes |
public BuilderInstruction30t(@Nonnull Opcode opcode, @Nonnull Label target) { super(opcode, target); }
Example #28
Source File: BuilderInstruction20t.java From zjdroid with Apache License 2.0 | 4 votes |
public BuilderInstruction20t(@Nonnull Opcode opcode, @Nonnull Label target) { super(opcode, target); }
Example #29
Source File: BuilderInstruction30t.java From ZjDroid with Apache License 2.0 | 4 votes |
public BuilderInstruction30t(@Nonnull Opcode opcode, @Nonnull Label target) { super(opcode, target); }
Example #30
Source File: BuilderInstruction10t.java From ZjDroid with Apache License 2.0 | 4 votes |
public BuilderInstruction10t(@Nonnull Opcode opcode, @Nonnull Label target) { super(opcode, target); }