Class SignatureUtils
java.lang.Object
io.micronaut.sourcegen.bytecode.core.SignatureUtils
JVM generic-signature operations shared by bytecode writers.
The result is the standard JVMS signature string. Keeping this operation independent of a bytecode library lets the ASM and JDK ClassFile backends use exactly the same generic metadata.
- Since:
- 2.2
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetClassSignature(ClassDef classDef) static @Nullable StringgetFieldSignature(@Nullable ObjectDef objectDef, FieldDef fieldDef) static @Nullable StringgetInterfaceSignature(InterfaceDef interfaceDef) static @Nullable StringgetMethodSignature(@Nullable ObjectDef objectDef, MethodDef methodDef) static StringgetRecordSignature(RecordDef recordDef)
-
Method Details
-
getFieldSignature
-
getClassSignature
-
getRecordSignature
-
getInterfaceSignature
- Parameters:
interfaceDef- The interface- Returns:
- The interface signature, or
nullwhen no generic metadata is needed
-
getMethodSignature
-