java.lang.Object
org.jboss.resteasy.reactive.common.processor.AsmUtil

public class AsmUtil extends Object
A collection of ASM and Jandex utilities.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getSignature(org.jboss.jandex.Type type)
     
    static String
    getSignature(org.jboss.jandex.Type type, Function<String,org.jboss.jandex.Type> typeVariableSubstitution)
     
    static void
    unboxIfRequired(org.objectweb.asm.MethodVisitor mv, org.jboss.jandex.Type jandexType)
    Calls the right unboxing method for the given Jandex Type if it is a primitive.
    static void
    unboxIfRequired(org.objectweb.asm.MethodVisitor mv, org.objectweb.asm.Type type)
    Calls the right unboxing method for the given Jandex Type if it is a primitive.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AsmUtil

      public AsmUtil()
  • Method Details

    • getSignature

      public static String getSignature(org.jboss.jandex.Type type)
    • getSignature

      public static String getSignature(org.jboss.jandex.Type type, Function<String,org.jboss.jandex.Type> typeVariableSubstitution)
    • unboxIfRequired

      public static void unboxIfRequired(org.objectweb.asm.MethodVisitor mv, org.jboss.jandex.Type jandexType)
      Calls the right unboxing method for the given Jandex Type if it is a primitive.
      Parameters:
      mv - The MethodVisitor on which to visit the unboxing instructions
      jandexType - The Jandex Type to unbox if it is a primitive.
    • unboxIfRequired

      public static void unboxIfRequired(org.objectweb.asm.MethodVisitor mv, org.objectweb.asm.Type type)
      Calls the right unboxing method for the given Jandex Type if it is a primitive.
      Parameters:
      mv - The MethodVisitor on which to visit the unboxing instructions
      type - The Jandex Type to unbox if it is a primitive.