Interface ClassTweaker
- All Superinterfaces:
ClassTweakerVisitor
- All Known Implementing Classes:
ClassTweakerImpl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateClassVisitor(int api, @Nullable ClassVisitor classVisitor, @Nullable BiConsumer<String, byte[]> generatedClassConsumer) getAccessWidener(String className) getEnumExtensions(String className) getInjectedInterfaces(String className) The mapping namespace of the current class tweaker.Contains a list of all classes that should be transformed.static ClassTweakerMethods inherited from interface ClassTweakerVisitor
visitAccessWidener, visitEnumExtension, visitHeader, visitInjectedInterface, visitLineNumber
-
Field Details
-
AW_V1
static final int AW_V1- See Also:
-
AW_V2
static final int AW_V2- See Also:
-
CT_V1
static final int CT_V1- See Also:
-
CT_V2
static final int CT_V2- See Also:
-
CT_LATEST
static final int CT_LATEST- See Also:
-
-
Method Details
-
newInstance
- Returns:
- a new
ClassTweakerinstance.
-
getNamespace
String getNamespace()The mapping namespace of the current class tweaker.- Returns:
- the mappings namespace.
-
getTargets
-
getAccessWidener
-
getAllAccessWideners
Map<String, AccessWidener> getAllAccessWideners() -
getInjectedInterfaces
-
getAllInjectedInterfaces
Map<String, List<InjectedInterface>> getAllInjectedInterfaces() -
getEnumExtensions
-
getAllEnumExtensions
Map<String, List<EnumExtension>> getAllEnumExtensions() -
createClassVisitor
ClassVisitor createClassVisitor(int api, @Nullable @Nullable ClassVisitor classVisitor, @Nullable @Nullable BiConsumer<String, byte[]> generatedClassConsumer)
-