Package net.bytebuddy.utility
Class AsmClassWriter.SuperClassResolvingJdkClassWriter
- java.lang.Object
-
- net.bytebuddy.utility.AsmClassWriter.SuperClassResolvingJdkClassWriter
-
- Enclosing interface:
- AsmClassWriter
public static class AsmClassWriter.SuperClassResolvingJdkClassWriter extends java.lang.Object
A pseudo-JDK class writer that resolves super classes using aTypePool
, to pass in the constructor.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.reflect.Method
GET_SUPER_CLASS
ThegetSuperClass(String)
method.private TypePool
typePool
TheTypePool
to use.
-
Constructor Summary
Constructors Constructor Description SuperClassResolvingJdkClassWriter(TypePool typePool)
Creates a super class resolving JDK class writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSuperClass(java.lang.String internalName)
Resolves the super class for a given internal class name, ornull
if a given class represents an interface.
-
-
-
Field Detail
-
GET_SUPER_CLASS
protected static final java.lang.reflect.Method GET_SUPER_CLASS
ThegetSuperClass(String)
method.
-
-
Method Detail
-
getSuperClass
@MaybeNull public java.lang.String getSuperClass(java.lang.String internalName)
Resolves the super class for a given internal class name, ornull
if a given class represents an interface. The provided class name will never beObject
.- Parameters:
internalName
- The internal name of the class or interface of which to return a super type.- Returns:
- The internal name of the super class or
null
if the provided type name represents an interface.
-
-