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

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

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

origin: cglib/cglib

public AnnotationVisitor visitTryCatchAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) {
  return AnnotationVisitorTee.getInstance(mv1.visitTryCatchAnnotation(typeRef, typePath, desc, visible),
                      mv2.visitTryCatchAnnotation(typeRef, typePath, desc, visible));
}
origin: cglib/cglib

public AnnotationVisitor visitTryCatchAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) {
  return AnnotationVisitorTee.getInstance(mv1.visitTryCatchAnnotation(typeRef, typePath, desc, visible),
                      mv2.visitTryCatchAnnotation(typeRef, typePath, desc, visible));
}
origin: org.ow2.asm/asm

/**
 * Visits an annotation on an exception handler type. This method must be called <i>after</i> the
 * {@link #visitTryCatchBlock} for the annotated exception handler. It can be called several times
 * for the same exception handler.
 *
 * @param typeRef a reference to the annotated type. The sort of this type reference must be
 *     {@link TypeReference#EXCEPTION_PARAMETER}. See {@link TypeReference}.
 * @param typePath the path to the annotated type argument, wildcard bound, array element type, or
 *     static inner type within 'typeRef'. May be {@literal null} if the annotation targets
 *     'typeRef' as a whole.
 * @param descriptor the class descriptor of the annotation class.
 * @param visible {@literal true} if the annotation is visible at runtime.
 * @return a visitor to visit the annotation values, or {@literal null} if this visitor is not
 *     interested in visiting this annotation.
 */
public AnnotationVisitor visitTryCatchAnnotation(
  final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) {
 if (api < Opcodes.ASM5) {
  throw new UnsupportedOperationException(REQUIRES_ASM5);
 }
 if (mv != null) {
  return mv.visitTryCatchAnnotation(typeRef, typePath, descriptor, visible);
 }
 return null;
}
origin: org.ow2.asm/asm

methodVisitor.visitTryCatchAnnotation(
  targetType & 0xFFFFFF00, path, annotationDescriptor, visible),
currentOffset,
origin: JackOfMostTrades/gadgetinspector

@Override
public AnnotationVisitor visitTryCatchAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) {
  return super.visitTryCatchAnnotation(typeRef, typePath, desc, visible);
}
origin: org.apache.drill.exec/drill-java-exec

@Override
public AnnotationVisitor visitTryCatchAnnotation(final int typeRef,
  final TypePath typePath, final String desc, final boolean visible) {
 fsmCursor.transition("visitTryCatchAnnotation");
 final AnnotationVisitor annotationVisitor = super.visitTryCatchAnnotation(
   typeRef, typePath, desc, visible);
 return annotationVisitor; // TODO: add CheckAnnotationVisitorFsm
}
origin: org.ow2.asm/asm-xml

@Override
public void begin(final String name, final Attributes attrs) {
 String desc = attrs.getValue("desc");
 boolean visible = Boolean.valueOf(attrs.getValue("visible")).booleanValue();
 int typeRef = Integer.parseInt(attrs.getValue("typeRef"));
 TypePath typePath = TypePath.fromString(attrs.getValue("typePath"));
 push(((MethodVisitor) peek()).visitTryCatchAnnotation(typeRef, typePath, desc, visible));
}
origin: org.ow2.asm/asm-debug-all

@Override
public void begin(final String name, final Attributes attrs) {
  String desc = attrs.getValue("desc");
  boolean visible = Boolean.valueOf(attrs.getValue("visible"))
      .booleanValue();
  int typeRef = Integer.parseInt(attrs.getValue("typeRef"));
  TypePath typePath = TypePath.fromString(attrs.getValue("typePath"));
  push(((MethodVisitor) peek()).visitTryCatchAnnotation(typeRef,
      typePath, desc, visible));
}
origin: org.ow2.asm/asm-commons

@Override
public AnnotationVisitor visitTryCatchAnnotation(
  final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) {
 AnnotationVisitor annotationVisitor =
   super.visitTryCatchAnnotation(typeRef, typePath, remapper.mapDesc(descriptor), visible);
 return annotationVisitor == null
   ? annotationVisitor
   : new AnnotationRemapper(api, annotationVisitor, remapper);
}
origin: org.ow2.asm/asm-debug-all

@Override
public AnnotationVisitor visitTryCatchAnnotation(int typeRef,
    TypePath typePath, String desc, boolean visible) {
  AnnotationVisitor av = super.visitTryCatchAnnotation(typeRef, typePath,
      remapper.mapDesc(desc), visible);
  return av == null ? av : new AnnotationRemapper(av, remapper);
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

@Override
public AnnotationVisitor visitTryCatchAnnotation(
  final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) {
 Printer annotationPrinter = p.visitTryCatchAnnotation(typeRef, typePath, descriptor, visible);
 return new TraceAnnotationVisitor(
   super.visitTryCatchAnnotation(typeRef, typePath, descriptor, visible), annotationPrinter);
}
origin: org.ow2.asm/asm-debug-all

@Override
public AnnotationVisitor visitTryCatchAnnotation(int typeRef,
    TypePath typePath, String desc, boolean visible) {
  Printer p = this.p.visitTryCatchAnnotation(typeRef, typePath, desc,
      visible);
  AnnotationVisitor av = mv == null ? null : mv.visitTryCatchAnnotation(
      typeRef, typePath, desc, visible);
  return new TraceAnnotationVisitor(av, p);
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

@Override
public AnnotationVisitor visitTryCatchAnnotation(
  final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) {
 AnnotationVisitor annotationVisitor =
   super.visitTryCatchAnnotation(typeRef, typePath, 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 visitTryCatchAnnotation(
  final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) {
 Printer annotationPrinter = p.visitTryCatchAnnotation(typeRef, typePath, descriptor, visible);
 return new TraceAnnotationVisitor(
   super.visitTryCatchAnnotation(typeRef, typePath, descriptor, visible), annotationPrinter);
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

@Override
public AnnotationVisitor visitTryCatchAnnotation(
  final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) {
 AnnotationVisitor annotationVisitor =
   super.visitTryCatchAnnotation(typeRef, typePath, remapper.mapDesc(descriptor), visible);
 return annotationVisitor == null
   ? annotationVisitor
   : new AnnotationRemapper(api, annotationVisitor, remapper);
}
origin: MinecraftForge/Installer

@Override
public AnnotationVisitor visitTryCatchAnnotation(int typeRef,
    TypePath typePath, String desc, boolean visible) {
  AnnotationVisitor av = super.visitTryCatchAnnotation(typeRef, typePath,
      remapper.mapDesc(desc), visible);
  return av == null ? av : new AnnotationRemapper(av, remapper);
}
origin: org.ow2.asm/asm-tree

 /**
  * Makes the given visitor visit this try catch block.
  *
  * @param methodVisitor a method visitor.
  */
 public void accept(final MethodVisitor methodVisitor) {
  methodVisitor.visitTryCatchBlock(
    start.getLabel(), end.getLabel(), handler == null ? null : handler.getLabel(), type);
  if (visibleTypeAnnotations != null) {
   for (int i = 0, n = visibleTypeAnnotations.size(); i < n; ++i) {
    TypeAnnotationNode typeAnnotation = visibleTypeAnnotations.get(i);
    typeAnnotation.accept(
      methodVisitor.visitTryCatchAnnotation(
        typeAnnotation.typeRef, typeAnnotation.typePath, typeAnnotation.desc, true));
   }
  }
  if (invisibleTypeAnnotations != null) {
   for (int i = 0, n = invisibleTypeAnnotations.size(); i < n; ++i) {
    TypeAnnotationNode typeAnnotation = invisibleTypeAnnotations.get(i);
    typeAnnotation.accept(
      methodVisitor.visitTryCatchAnnotation(
        typeAnnotation.typeRef, typeAnnotation.typePath, typeAnnotation.desc, false));
   }
  }
 }
}
origin: org.ow2.asm/asm-debug-all

@Override
public AnnotationVisitor visitTryCatchAnnotation(final int typeRef,
    final TypePath typePath, final String desc, final boolean visible) {
  checkStartCode();
  checkEndCode();
  int sort = typeRef >>> 24;
  if (sort != TypeReference.EXCEPTION_PARAMETER) {
    throw new IllegalArgumentException("Invalid type reference sort 0x"
        + Integer.toHexString(sort));
  }
  CheckClassAdapter.checkTypeRefAndPath(typeRef, typePath);
  CheckMethodAdapter.checkDesc(desc, false);
  return new CheckAnnotationAdapter(super.visitTryCatchAnnotation(
      typeRef, typePath, desc, visible));
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

@Override
public AnnotationVisitor visitTryCatchAnnotation(
  final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) {
 checkVisitCodeCalled();
 checkVisitMaxsNotCalled();
 int sort = new TypeReference(typeRef).getSort();
 if (sort != TypeReference.EXCEPTION_PARAMETER) {
  throw new IllegalArgumentException(INVALID_TYPE_REFERENCE + Integer.toHexString(sort));
 }
 CheckClassAdapter.checkTypeRef(typeRef);
 CheckMethodAdapter.checkDescriptor(version, descriptor, false);
 return new CheckAnnotationAdapter(
   super.visitTryCatchAnnotation(typeRef, typePath, descriptor, visible));
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

@Override
public AnnotationVisitor visitTryCatchAnnotation(
  final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) {
 checkVisitCodeCalled();
 checkVisitMaxsNotCalled();
 int sort = new TypeReference(typeRef).getSort();
 if (sort != TypeReference.EXCEPTION_PARAMETER) {
  throw new IllegalArgumentException(INVALID_TYPE_REFERENCE + Integer.toHexString(sort));
 }
 CheckClassAdapter.checkTypeRef(typeRef);
 CheckMethodAdapter.checkDescriptor(version, descriptor, false);
 return new CheckAnnotationAdapter(
   super.visitTryCatchAnnotation(typeRef, typePath, descriptor, visible));
}
org.objectweb.asmMethodVisitorvisitTryCatchAnnotation

Javadoc

Visits an annotation on an exception handler type. This method must be called after the #visitTryCatchBlock for the annotated exception handler. It can be called several times for the same exception handler.

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

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • JComboBox (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ plugins
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