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

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

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

origin: cglib/cglib

public void visitLineNumber(int line, Label start) {
  mv1.visitLineNumber(line, start);
  mv2.visitLineNumber(line, start);
}

origin: cglib/cglib

public void visitLineNumber(int line, Label start) {
  mv1.visitLineNumber(line, start);
  mv2.visitLineNumber(line, start);
}

origin: org.ow2.asm/asm

/**
 * Visits a line number declaration.
 *
 * @param line a line number. This number refers to the source file from which the class was
 *     compiled.
 * @param start the first instruction corresponding to this line number.
 * @throws IllegalArgumentException if {@code start} has not already been visited by this visitor
 *     (by the {@link #visitLabel} method).
 */
public void visitLineNumber(final int line, final Label start) {
 if (mv != null) {
  mv.visitLineNumber(line, start);
 }
}
origin: org.ow2.asm/asm

/**
 * Makes the given visitor visit this label and its source line numbers, if applicable.
 *
 * @param methodVisitor a method visitor.
 * @param visitLineNumbers whether to visit of the label's source line numbers, if any.
 */
final void accept(final MethodVisitor methodVisitor, final boolean visitLineNumbers) {
 methodVisitor.visitLabel(this);
 if (visitLineNumbers && lineNumber != 0) {
  methodVisitor.visitLineNumber(lineNumber & 0xFFFF, this);
  if (otherLineNumbers != null) {
   for (int i = 1; i <= otherLineNumbers[0]; ++i) {
    methodVisitor.visitLineNumber(otherLineNumbers[i], this);
   }
  }
 }
}
origin: kilim/kilim

void visitLineNumbers(MethodVisitor mv) {
  for (LineNumberNode node : lineNumberNodes.values()) {
    mv.visitLineNumber(node.line, node.start.getLabel());
  }
}
origin: Sable/soot

/**
 * Writes out the information stored in tags associated with the given unit
 * 
 * @param mv
 *          The method visitor for writing out the bytecode
 * @param u
 *          The unit for which to write out the tags
 */
protected void generateTagsForUnit(MethodVisitor mv, Unit u) {
 if (u.hasTag("LineNumberTag")) {
  LineNumberTag lnt = (LineNumberTag) u.getTag("LineNumberTag");
  Label l;
  if (branchTargetLabels.containsKey(u)) {
   l = branchTargetLabels.get(u);
  } else {
   l = new Label();
   mv.visitLabel(l);
  }
  mv.visitLineNumber(lnt.getLineNumber(), l);
 }
}
origin: pxb1988/dex2jar

asm.visitLabel(label);
if (labelStmt.lineNumber >= 0) {
  asm.visitLineNumber(labelStmt.lineNumber, label);
origin: hcoles/pitest

@Override
public void visitLineNumber(int line, Label start) {
 prepareToStartTracking();
 this.currentLineNumber = line;
 super.visitLineNumber(line, start);
}
origin: hcoles/pitest

@Test
public void shouldForwardVisitLineNumberToChild() {
 final Label l = new Label();
 getTesteeVisitor().visitLineNumber(1, l);
 verify(this.mv).visitLineNumber(1, l);
}
origin: net.sourceforge.cobertura/cobertura

@Override
public void visitLineNumber(int number, Label label) {
  lastLineId = lineIdGenerator.incrementAndGet();
  super.visitLineNumber(number, label);
}
origin: bytemanproject/byteman

public void notifySourceEnd()
{
  Label label = new Label();
  mv.visitLabel(label);
  mv.visitLineNumber(sourceLine + 1, label);
}
origin: dhanji/loop

private void trackLineAndColumn(Node node) {
 Label line = new Label();
 methodStack.peek().visitLabel(line);
 methodStack.peek().visitLineNumber(node.sourceLine, line);
}
origin: nailperry-zd/LazierTracker

@Override
public void visitLineNumber(int line, Label label) {
  Log.logEach("visitLineNumber", line, label);
  super.visitLineNumber(line, label);
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

@Override
public void visitLineNumber(final int line, final Label start) {
 p.visitLineNumber(line, start);
 super.visitLineNumber(line, start);
}
origin: org.netbeans.api/org-jruby

@Deprecated
private MethodVisitor startCallFast(ClassWriter cw) {
  MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "call", FAST_CALL_SIG, null, null);
  
  mv.visitCode();
  Label line = new Label();
  mv.visitLineNumber(0, line);
  mv.visitVarInsn(ALOAD, 1);
  mv.visitTypeInsn(CHECKCAST, typePath);
  return mv;
}
origin: org.netbeans.api/org-jruby

@Deprecated
private MethodVisitor startCallSFast(ClassWriter cw) {
  MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "call", FAST_CALL_SIG, null, null);
  
  mv.visitCode();
  Label line = new Label();
  mv.visitLineNumber(0, line);
  mv.visitVarInsn(ALOAD, 1);
  mv.visitTypeInsn(CHECKCAST, IRUB);
  return mv;
}
origin: org.ow2.asm/asm-debug-all

  @Override
  public final void begin(final String name, final Attributes attrs) {
    int line = Integer.parseInt(attrs.getValue("line"));
    Label start = getLabel(attrs.getValue("start"));
    getCodeVisitor().visitLineNumber(line, start);
  }
}
origin: eclipse/golo-lang

 static Label visitLine(GoloElement<?> element, MethodVisitor visitor) {
  Label label = new Label();
  visitor.visitLabel(label);
  if (element.hasPosition()) {
   visitor.visitLineNumber(element.positionInSourceCode().getStartLine(), label);
  }
  return label;
 }
}
origin: com.facebook.presto/presto-bytecode

@Override
public void accept(MethodVisitor visitor, MethodGenerationContext generationContext)
{
  if (generationContext.updateLineNumber(lineNumber)) {
    label.accept(visitor, generationContext);
    visitor.visitLineNumber(lineNumber, label.getLabel());
  }
}
origin: net.sourceforge.cobertura/cobertura

@Override
public void visitLineNumber(int arg0, Label arg1) {
  super.visitLineNumber(arg0, arg1);
  appendToBacklog(new LineNumberNode(arg0, new LabelNode(arg1)));
}
org.objectweb.asmMethodVisitorvisitLineNumber

Javadoc

Visits a line number declaration.

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,
  • visitFrame,
  • visitTableSwitchInsn,
  • visitParameterAnnotation,
  • visitIincInsn

Popular in Java

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • 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)
  • Top 12 Jupyter Notebook extensions
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