Package net.bytebuddy.utility
Class AsmClassWriter.SuperClassResolvingJdkClassWriter
java.lang.Object
net.bytebuddy.utility.AsmClassWriter.SuperClassResolvingJdkClassWriter
- Enclosing interface:
AsmClassWriter
A pseudo-JDK class writer that resolves super classes using a
TypePool
, to pass in the constructor.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Method
ThegetSuperClass(String)
method.private final TypePool
TheTypePool
to use. -
Constructor Summary
ConstructorsConstructorDescriptionSuperClassResolvingJdkClassWriter
(TypePool typePool) Creates a super class resolving JDK class writer. -
Method Summary
Modifier and TypeMethodDescriptiongetSuperClass
(String internalName) Resolves the super class for a given internal class name, ornull
if a given class represents an interface.
-
Field Details
-
GET_SUPER_CLASS
ThegetSuperClass(String)
method. -
typePool
TheTypePool
to use.
-
-
Constructor Details
-
SuperClassResolvingJdkClassWriter
Creates a super class resolving JDK class writer.- Parameters:
typePool
- TheTypePool
to use.
-
-
Method Details
-
getSuperClass
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.
-