Java Code Examples for org.jf.dexlib2.builder.SwitchLabelElement

Following code examples demonstrate how to use org.jf.dexlib2.builder.SwitchLabelElementfrom android. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use org.jf.dexlib2.builder.SwitchLabelElementand various code implementation of this class.

  protected BuilderInstruction getRealInsn0(LabelAssigner assigner) {
    List<SwitchLabelElement> elements = new ArrayList<SwitchLabelElement>();
    for (int i = 0; i < keys.length; i++) {
      elements.add(new SwitchLabelElement(keys[i], assigner.getOrCreateLabel((Stmt) targets.get(i))));
    }
    return new BuilderSparseSwitchPayload(elements);
  } 


Advertisement
Advertisement