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

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

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

origin: cglib/cglib

  public AnnotationVisitor visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) {
    return AnnotationVisitorTee.getInstance(mv1.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, desc, visible),
                        mv2.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, desc, visible));
  }
}
origin: cglib/cglib

  public AnnotationVisitor visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) {
    return AnnotationVisitorTee.getInstance(mv1.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, desc, visible),
                        mv2.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, desc, visible));
  }
}
origin: org.ow2.asm/asm

return mv.visitLocalVariableAnnotation(
  typeRef, typePath, start, end, index, descriptor, visible);
origin: org.ow2.asm/asm

methodVisitor.visitLocalVariableAnnotation(
  context.currentTypeAnnotationTarget,
  context.currentTypeAnnotationTargetPath,
methodVisitor.visitLocalVariableAnnotation(
  context.currentTypeAnnotationTarget,
  context.currentTypeAnnotationTargetPath,
origin: org.ow2.asm/asm-debug-all

@Override
public AnnotationVisitor visitLocalVariableAnnotation(int typeRef,
    TypePath typePath, Label[] start, Label[] end, int[] index,
    String desc, boolean visible) {
  Type t = Type.getType(desc);
  int[] newIndex = new int[index.length];
  for (int i = 0; i < newIndex.length; ++i) {
    newIndex[i] = remap(index[i], t);
  }
  return mv.visitLocalVariableAnnotation(typeRef, typePath, start, end,
      newIndex, desc, visible);
}
origin: org.apache.drill.exec/drill-java-exec

@Override
public AnnotationVisitor visitLocalVariableAnnotation(final int typeRef,
  final TypePath typePath, final Label[] start, final Label[] end,
  final int[] index, final String desc, final boolean visible) {
 fsmCursor.transition("visitLocalVariableAnnotation");
 final AnnotationVisitor annotationVisitor = super
   .visitLocalVariableAnnotation(typeRef, typePath, start, end, index,
     desc, visible);
 return annotationVisitor; // TODO: add CheckAnnotationVisitorFsm
}
origin: org.ow2.asm/asm-commons

@Override
public AnnotationVisitor visitLocalVariableAnnotation(
  final int typeRef,
  final TypePath typePath,
  final Label[] start,
  final Label[] end,
  final int[] index,
  final String descriptor,
  final boolean visible) {
 Type type = Type.getType(descriptor);
 int[] remappedIndex = new int[index.length];
 for (int i = 0; i < remappedIndex.length; ++i) {
  remappedIndex[i] = remap(index[i], type);
 }
 return super.visitLocalVariableAnnotation(
   typeRef, typePath, start, end, remappedIndex, descriptor, visible);
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

@Override
public AnnotationVisitor visitLocalVariableAnnotation(
  final int typeRef,
  final TypePath typePath,
  final Label[] start,
  final Label[] end,
  final int[] index,
  final String descriptor,
  final boolean visible) {
 Type type = Type.getType(descriptor);
 int[] remappedIndex = new int[index.length];
 for (int i = 0; i < remappedIndex.length; ++i) {
  remappedIndex[i] = remap(index[i], type);
 }
 return super.visitLocalVariableAnnotation(
   typeRef, typePath, start, end, remappedIndex, descriptor, visible);
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

@Override
public AnnotationVisitor visitLocalVariableAnnotation(
  final int typeRef,
  final TypePath typePath,
  final Label[] start,
  final Label[] end,
  final int[] index,
  final String descriptor,
  final boolean visible) {
 Type type = Type.getType(descriptor);
 int[] remappedIndex = new int[index.length];
 for (int i = 0; i < remappedIndex.length; ++i) {
  remappedIndex[i] = remap(index[i], type);
 }
 return super.visitLocalVariableAnnotation(
   typeRef, typePath, start, end, remappedIndex, descriptor, visible);
}
origin: mopemope/meghanada-server

@Override
public AnnotationVisitor visitLocalVariableAnnotation(
  int i, TypePath typePath, Label[] labels, Label[] labels1, int[] ints, String s, boolean b) {
 log.traceEntry("i={} s={}", i, s);
 final AnnotationVisitor annotationVisitor =
   super.visitLocalVariableAnnotation(i, typePath, labels, labels1, ints, s, b);
 return log.traceExit(annotationVisitor);
}
origin: org.ow2.asm/asm-debug-all

  @Override
  public AnnotationVisitor visitLocalVariableAnnotation(int typeRef,
      TypePath typePath, Label[] start, Label[] end, int[] index,
      String desc, boolean visible) {
    AnnotationVisitor av = super.visitLocalVariableAnnotation(typeRef,
        typePath, start, end, index, remapper.mapDesc(desc), visible);
    return av == null ? av : new AnnotationRemapper(av, remapper);
  }
}
origin: MinecraftForge/Installer

  @Override
  public AnnotationVisitor visitLocalVariableAnnotation(int typeRef,
      TypePath typePath, Label[] start, Label[] end, int[] index,
      String desc, boolean visible) {
    AnnotationVisitor av = super.visitLocalVariableAnnotation(typeRef,
        typePath, start, end, index, remapper.mapDesc(desc), visible);
    return av == null ? av : new AnnotationRemapper(av, remapper);
  }
}
origin: org.ow2.asm/asm-debug-all

@Override
public AnnotationVisitor visitLocalVariableAnnotation(int typeRef,
    TypePath typePath, Label[] start, Label[] end, int[] index,
    String desc, boolean visible) {
  Printer p = this.p.visitLocalVariableAnnotation(typeRef, typePath,
      start, end, index, desc, visible);
  AnnotationVisitor av = mv == null ? null : mv
      .visitLocalVariableAnnotation(typeRef, typePath, start, end,
          index, desc, visible);
  return new TraceAnnotationVisitor(av, p);
}
origin: org.ow2.asm/asm-tree

 /**
  * Makes the given visitor visit this type annotation.
  *
  * @param methodVisitor the visitor that must visit this annotation.
  * @param visible {@literal true} if the annotation is visible at runtime.
  */
 public void accept(final MethodVisitor methodVisitor, final boolean visible) {
  Label[] startLabels = new Label[this.start.size()];
  Label[] endLabels = new Label[this.end.size()];
  int[] indices = new int[this.index.size()];
  for (int i = 0, n = startLabels.length; i < n; ++i) {
   startLabels[i] = this.start.get(i).getLabel();
   endLabels[i] = this.end.get(i).getLabel();
   indices[i] = this.index.get(i);
  }
  accept(
    methodVisitor.visitLocalVariableAnnotation(
      typeRef, typePath, startLabels, endLabels, indices, desc, visible));
 }
}
origin: org.ow2.asm/asm-debug-all

  /**
   * Makes the given visitor visit this type annotation.
   * 
   * @param mv
   *            the visitor that must visit this annotation.
   * @param visible
   *            <tt>true</tt> if the annotation is visible at runtime.
   */
  public void accept(final MethodVisitor mv, boolean visible) {
    Label[] start = new Label[this.start.size()];
    Label[] end = new Label[this.end.size()];
    int[] index = new int[this.index.size()];
    for (int i = 0; i < start.length; ++i) {
      start[i] = this.start.get(i).getLabel();
      end[i] = this.end.get(i).getLabel();
      index[i] = this.index.get(i);
    }
    accept(mv.visitLocalVariableAnnotation(typeRef, typePath, start, end,
        index, desc, true));
  }
}
origin: org.ow2.asm/asm-commons

 @Override
 public AnnotationVisitor visitLocalVariableAnnotation(
   final int typeRef,
   final TypePath typePath,
   final Label[] start,
   final Label[] end,
   final int[] index,
   final String descriptor,
   final boolean visible) {
  AnnotationVisitor annotationVisitor =
    super.visitLocalVariableAnnotation(
      typeRef, typePath, start, end, index, remapper.mapDesc(descriptor), visible);
  return annotationVisitor == null
    ? annotationVisitor
    : new AnnotationRemapper(api, annotationVisitor, remapper);
 }
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

@Override
public AnnotationVisitor visitLocalVariableAnnotation(
  final int typeRef,
  final TypePath typePath,
  final Label[] start,
  final Label[] end,
  final int[] index,
  final String descriptor,
  final boolean visible) {
 Printer annotationPrinter =
   p.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, descriptor, visible);
 return new TraceAnnotationVisitor(
   super.visitLocalVariableAnnotation(
     typeRef, typePath, start, end, index, descriptor, visible),
   annotationPrinter);
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

@Override
public AnnotationVisitor visitLocalVariableAnnotation(
  final int typeRef,
  final TypePath typePath,
  final Label[] start,
  final Label[] end,
  final int[] index,
  final String descriptor,
  final boolean visible) {
 Printer annotationPrinter =
   p.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, descriptor, visible);
 return new TraceAnnotationVisitor(
   super.visitLocalVariableAnnotation(
     typeRef, typePath, start, end, index, descriptor, visible),
   annotationPrinter);
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

 @Override
 public AnnotationVisitor visitLocalVariableAnnotation(
   final int typeRef,
   final TypePath typePath,
   final Label[] start,
   final Label[] end,
   final int[] index,
   final String descriptor,
   final boolean visible) {
  AnnotationVisitor annotationVisitor =
    super.visitLocalVariableAnnotation(
      typeRef, typePath, start, end, index, remapper.mapDesc(descriptor), visible);
  return annotationVisitor == null
    ? annotationVisitor
    : new AnnotationRemapper(api, annotationVisitor, remapper);
 }
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

 @Override
 public AnnotationVisitor visitLocalVariableAnnotation(
   final int typeRef,
   final TypePath typePath,
   final Label[] start,
   final Label[] end,
   final int[] index,
   final String descriptor,
   final boolean visible) {
  AnnotationVisitor annotationVisitor =
    super.visitLocalVariableAnnotation(
      typeRef, typePath, start, end, index, remapper.mapDesc(descriptor), visible);
  return annotationVisitor == null
    ? annotationVisitor
    : new AnnotationRemapper(api, annotationVisitor, remapper);
 }
}
org.objectweb.asmMethodVisitorvisitLocalVariableAnnotation

Javadoc

Visits an annotation on a local variable type.

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

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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