Package net.bytebuddy.dynamic.scaffold
Interface InstrumentedType.Factory
-
- All Known Implementing Classes:
InstrumentedType.Factory.Default
- Enclosing interface:
- InstrumentedType
public static interface InstrumentedType.FactoryA factory for creating anInstrumentedType.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classInstrumentedType.Factory.DefaultDefault implementations of instrumented type factories.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstrumentedType.WithFlexibleNamerepresent(TypeDescription typeDescription)Creates an instrumented type that represents the provided type.InstrumentedType.WithFlexibleNamesubclass(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.
-
-