public class AsmUtilCopy extends Object
| Constructor and Description |
|---|
AsmUtilCopy() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getSignature(org.jboss.jandex.ClassInfo klass)
Returns the Java bytecode signature of a given Jandex Class using the given type argument mappings.
|
static String |
getSignature(org.jboss.jandex.ClassInfo klass,
Function<org.jboss.jandex.TypeVariable,org.jboss.jandex.Type> typeArgMapper)
Returns the Java bytecode signature of a given Jandex Class using the given type argument mappings.
|
static String |
getSignature(org.jboss.jandex.MethodInfo method)
Returns the Java bytecode signature of a given Jandex MethodInfo with no type argument mappings.
|
static String |
getSignature(org.jboss.jandex.MethodInfo method,
Function<org.jboss.jandex.TypeVariable,org.jboss.jandex.Type> typeArgMapper)
Returns the Java bytecode signature of a given Jandex MethodInfo using the given type argument mappings.
|
static boolean |
needsSignature(org.jboss.jandex.ClassInfo klass)
Returns true if the given class has type parameters or if its superclass or superinterfaces require a signature
|
static boolean |
needsSignature(org.jboss.jandex.MethodInfo method)
Returns true if the given method has type parameters or if its return type or parameter types require a signature
|
public static String getSignature(org.jboss.jandex.MethodInfo method)
public class Foo<T> {
public <R> List<R> method(int a, T t){...}
}
This will return <R:Ljava/lang/Object;>(ITT;)Ljava/util/List<TR;>;.method - the method you want the signature for.public static String getSignature(org.jboss.jandex.MethodInfo method, Function<org.jboss.jandex.TypeVariable,org.jboss.jandex.Type> typeArgMapper)
public class Foo<T> {
public <R> List<R> method(int a, T t){...}
}
This will return <R:Ljava/lang/Object;>(ILjava/lang/Integer;)Ljava/util/List<TR;>; if
your typeArgMapper contains T=Ljava/lang/Integer;.method - the method you want the signature for.typeArgMapper - a mapping between type variables and their resolved type.public static String getSignature(org.jboss.jandex.ClassInfo klass)
public class FooThis will return <R:Ljava/lang/Object;>LBar<TR;>;Ljava/util/List<Ljava/lang/String;>;.extends Bar implements List { }
klass - the class you want the signature for.public static String getSignature(org.jboss.jandex.ClassInfo klass, Function<org.jboss.jandex.TypeVariable,org.jboss.jandex.Type> typeArgMapper)
public class FooThis will return <R:Ljava/lang/Object;>LBar<TR;>;Ljava/util/List<Ljava/lang/String;>;.extends Bar implements List { }
klass - the class you want the signature for.typeArgMapper - a mapping between type variables and their resolved type.public static boolean needsSignature(org.jboss.jandex.ClassInfo klass)
public static boolean needsSignature(org.jboss.jandex.MethodInfo method)
Copyright © 2021 JBoss by Red Hat. All rights reserved.