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

  • 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 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

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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