Package net.bytebuddy.dynamic.scaffold
Interface InstrumentedType.Factory
- All Known Implementing Classes:
InstrumentedType.Factory.Default
- Enclosing interface:
InstrumentedType
public static interface InstrumentedType.Factory
A factory for creating an
InstrumentedType.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDefault implementations of instrumented type factories. -
Method Summary
Modifier and TypeMethodDescriptionrepresent(TypeDescription typeDescription) Creates an instrumented type that represents the provided type.subclass(String name, int modifiers, TypeDescription.Generic superClass) Creates a new instrumented type as a subclass.
-
Method Details
-
represent
Creates an instrumented type that represents the provided type.- Parameters:
typeDescription- The type to represent.- Returns:
- An appropriate instrumented type.
-
subclass
InstrumentedType.WithFlexibleName subclass(String name, int modifiers, TypeDescription.Generic superClass) Creates a new instrumented type as a subclass.- Parameters:
name- The type's name.modifiers- The type's modifiers.superClass- The type's super class.- Returns:
- A new instrumented type representing a subclass of the given parameters.
-