Tabnine Logo
MethodVisitor.visitTableSwitchInsn
Code IndexAdd Tabnine to your IDE (free)

How to use
visitTableSwitchInsn
method
in
org.objectweb.asm.MethodVisitor

Best Java code snippets using org.objectweb.asm.MethodVisitor.visitTableSwitchInsn (Showing top 20 results out of 486)

origin: cglib/cglib

public void visitTableSwitchInsn(int min, int max, Label dflt, Label labels[]) {
  mv1.visitTableSwitchInsn(min, max, dflt, labels);
  mv2.visitTableSwitchInsn(min, max, dflt, labels);
}

origin: cglib/cglib

public void visitTableSwitchInsn(int min, int max, Label dflt, Label labels[]) {
  mv1.visitTableSwitchInsn(min, max, dflt, labels);
  mv2.visitTableSwitchInsn(min, max, dflt, labels);
}

origin: org.ow2.asm/asm

/**
 * Visits a TABLESWITCH instruction.
 *
 * @param min the minimum key value.
 * @param max the maximum key value.
 * @param dflt beginning of the default handler block.
 * @param labels beginnings of the handler blocks. {@code labels[i]} is the beginning of the
 *     handler block for the {@code min + i} key.
 */
public void visitTableSwitchInsn(
  final int min, final int max, final Label dflt, final Label... labels) {
 if (mv != null) {
  mv.visitTableSwitchInsn(min, max, dflt, labels);
 }
}
origin: pxb1988/dex2jar

mv.visitTableSwitchInsn(0, callbacks.size() - 1, def, labels);
origin: Sable/soot

@Override
public void caseTableSwitchInst(TableSwitchInst i) {
 List<Unit> targets = i.getTargets();
 Label[] labels = new Label[targets.size()];
 for (int j = 0; j < targets.size(); j++) {
  labels[j] = branchTargetLabels.get(targets.get(j));
 }
 mv.visitTableSwitchInsn(i.getLowIndex(), i.getHighIndex(), branchTargetLabels.get(i.getDefaultTarget()), labels);
}
origin: pxb1988/dex2jar

  labels[i] = new Label();
mv.visitTableSwitchInsn(0, callbacks.size() - 1, def, labels);
origin: fengjiachun/Jupiter

mv.visitTableSwitchInsn(0, labels.length - 1, defaultLabel, labels);
origin: fengjiachun/Jupiter

mv.visitTableSwitchInsn(0, labels.length - 1, defaultLabel, labels);
origin: JCTools/JCTools

methodVisitor.visitTableSwitchInsn(low, high, endOfSwitch, cases);
origin: pxb1988/dex2jar

  targets[i] = (Label) tss.targets[i].tag;
asm.visitTableSwitchInsn(tss.lowIndex, tss.lowIndex + targets.length - 1,
    (Label) tss.defaultTarget.tag, targets);
origin: glowroot/glowroot

@Override
public void visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) {
  super.visitTableSwitchInsn(min, max, dflt, labels);
  skipNextFrame = false;
}
origin: kilim/kilim

mv.visitTableSwitchInsn(min, max, defLabel, labels);
break;
origin: cglib/cglib

  labels[keys[i] - min] = make_label();
mv.visitTableSwitchInsn(min, max, def, labels);
for (int i = 0; i < range; i++) {
  Label label = labels[i];
origin: cglib/cglib

  labels[keys[i] - min] = make_label();
mv.visitTableSwitchInsn(min, max, def, labels);
for (int i = 0; i < range; i++) {
  Label label = labels[i];
origin: org.ow2.asm/asm

 currentOffset += 4;
methodVisitor.visitTableSwitchInsn(low, high, defaultLabel, table);
break;
origin: hcoles/pitest

@Test
public void shouldForwardVisitTableSwitchInsnToChild() {
 final Label l = new Label();
 final Label[] l2 = { new Label() };
 getTesteeVisitor().visitTableSwitchInsn(1, 2, l, l2);
 verify(this.mv).visitTableSwitchInsn(1, 2, l, l2);
}
origin: org.ow2.asm/asm-commons

@Override
public void visitTableSwitchInsn(
  final int min, final int max, final Label dflt, final Label... labels) {
 minSize += 13 + labels.length * 4;
 maxSize += 16 + labels.length * 4;
 super.visitTableSwitchInsn(min, max, dflt, labels);
}
origin: org.ow2.asm/asm-commons

@Override
public void visitTableSwitchInsn(
  final int min, final int max, final Label dflt, final Label... labels) {
 super.visitTableSwitchInsn(min, max, dflt, labels);
 execute(Opcodes.TABLESWITCH, 0, null);
 this.locals = null;
 this.stack = null;
}
origin: org.ow2.asm/asm-tree

@Override
public void accept(final MethodVisitor methodVisitor) {
 Label[] labelsArray = new Label[this.labels.size()];
 for (int i = 0, n = labelsArray.length; i < n; ++i) {
  labelsArray[i] = this.labels.get(i).getLabel();
 }
 methodVisitor.visitTableSwitchInsn(min, max, dflt.getLabel(), labelsArray);
 acceptAnnotations(methodVisitor);
}
origin: net.sourceforge.cobertura/cobertura

@Override
public void visitTableSwitchInsn(int arg0, int arg1, Label arg2,
    Label[] arg3) {
  super.visitTableSwitchInsn(arg0, arg1, arg2, arg3);
  LabelNode nodes[] = new LabelNode[arg3.length];
  for (int i = 0; i < arg3.length; i++) {
    nodes[i] = new LabelNode(arg3[i]);
  }
  appendToBacklog(new TableSwitchInsnNode(arg0, arg1,
      new LabelNode(arg2), nodes));
}
org.objectweb.asmMethodVisitorvisitTableSwitchInsn

Javadoc

Visits a TABLESWITCH instruction.

Popular methods of MethodVisitor

  • visitMethodInsn
    Visits a method instruction. A method instruction is an instruction that invokes a method.
  • visitInsn
    Visits a zero operand instruction.
  • visitVarInsn
    Visits a local variable instruction. A local variable instruction is an instruction that loads or st
  • visitMaxs
    Visits the maximum stack size and the maximum number of local variables of the method.
  • visitEnd
    Visits the end of the method. This method, which is the last one to be called, is used to inform the
  • visitCode
    Starts the visit of the method's code, if any (i.e. non abstract method).
  • visitFieldInsn
    Visits a field instruction. A field instruction is an instruction that loads or stores the value of
  • visitTypeInsn
    Visits a type instruction. A type instruction is an instruction that takes the internal name of a cl
  • visitLabel
    Visits a label. A label designates the instruction that will be visited just after it.
  • visitLdcInsn
    Visits a LDC instruction. Note that new constant types may be added in future versions of the Java V
  • visitJumpInsn
    Visits a jump instruction. A jump instruction is an instruction that may jump to another instruction
  • visitIntInsn
    Visits an instruction with a single int operand.
  • visitJumpInsn,
  • visitIntInsn,
  • visitLocalVariable,
  • visitAnnotation,
  • visitTryCatchBlock,
  • visitLineNumber,
  • visitFrame,
  • visitParameterAnnotation,
  • visitIincInsn

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JFileChooser (javax.swing)
  • JTable (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now