Package io.quarkus.arc.processor
Class AsmUtil
- java.lang.Object
-
- io.quarkus.arc.processor.AsmUtil
-
public class AsmUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description AsmUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
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
-
-