Codota Logo
MethodVisitor.visitLineNumber
Code IndexAdd Codota 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)

  • Common ways to obtain MethodVisitor
private void myMethod () {
MethodVisitor m =
  • Codota IconClassVisitor zuper;zuper.visitMethod(access, name, desc, signature, exceptions)
  • Codota IconClassVisitor cv;String name;String desc;String signature;String[] exceptions;cv.visitMethod(access, name, desc, signature, exceptions)
  • Codota IconClassVisitor cv;cv.visitMethod(access, "<init>", "()V", null, null)
  • Smart code suggestions by Codota
}
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

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now