Package dev.denwav.hypo.asm.hydrate
Class BridgeMethodHydrator
java.lang.Object
dev.denwav.hypo.asm.hydrate.BridgeMethodHydrator
- All Implemented Interfaces:
HydrationProvider<AsmMethodData>
HydrationProvider
for determining synthetic bridge method targets and sources on AsmMethodData
objects.
This class fills in HypoHydration.SYNTHETIC_SOURCE
and HypoHydration.SYNTHETIC_TARGET
keys on
AsmMethodData
objects.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
State for the parser inhydrate(AsmMethodData, HypoContext)
, used internally. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull BridgeMethodHydrator
create()
Create a new instance ofBridgeMethodHydrator
.void
hydrate(@NotNull AsmMethodData data, @NotNull HypoContext context)
@NotNull Class<? extends AsmMethodData>
target()
-
Method Details
-
create
Create a new instance ofBridgeMethodHydrator
.- Returns:
- A new instance of
BridgeMethodHydrator
.
-
target
- Specified by:
target
in interfaceHydrationProvider<AsmMethodData>
-
hydrate
public void hydrate(@NotNull @NotNull AsmMethodData data, @NotNull @NotNull HypoContext context) throws IOException- Specified by:
hydrate
in interfaceHydrationProvider<AsmMethodData>
- Throws:
IOException
-