Package io.quarkus.arc.processor
Class AsmUtil
java.lang.Object
io.quarkus.arc.processor.AsmUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetGeneratedSubClassSignature(org.jboss.jandex.ClassInfo superClass, org.jboss.jandex.Type superClassAsType) Returns the Java bytecode generic signature of a hypothetical subclass of givensuperClass, extending the class's type as denoted bysuperClassAsType.
-
Constructor Details
-
AsmUtil
public AsmUtil()
-
-
Method Details
-
getGeneratedSubClassSignature
public static String getGeneratedSubClassSignature(org.jboss.jandex.ClassInfo superClass, org.jboss.jandex.Type superClassAsType) Returns the Java bytecode generic signature of a hypothetical subclass of givensuperClass, extending the class's type as denoted bysuperClassAsType. For example, given this superclass:
this method will return <R:Ljava/lang/Object;>LFoo<TR;>;. This is because the hypothetical subclass is considered to be declared like this:public class Foo<R> extends Bar<R> implements List<String> { }public class MyGeneratedClass<R> extends Foo<R> { }BarandListare ignored, as they are not part of the signature of the hypothetical subclass.- Parameters:
superClass- the superclass of the class you want to generate the signature forsuperClassAsType- the superclass type usage in theextendsclause of the hypothetical subclass- Returns:
- generic signature for the subclass
-