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 anInstrumentedType
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
InstrumentedType.Factory.Default
Default implementations of instrumented type factories.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstrumentedType.WithFlexibleName
represent(TypeDescription typeDescription)
Creates an instrumented type that represents the provided type.InstrumentedType.WithFlexibleName
subclass(java.lang.String name, int modifiers, TypeDescription.Generic superClass)
Creates a new instrumented type as a subclass.
-
-
-
Method Detail
-
represent
InstrumentedType.WithFlexibleName represent(TypeDescription typeDescription)
Creates an instrumented type that represents the provided type.- Parameters:
typeDescription
- The type to represent.- Returns:
- An appropriate instrumented type.
-
subclass
InstrumentedType.WithFlexibleName subclass(java.lang.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.
-
-