Package org.stianloader.softmap
Class SimpleFramedRemapper
java.lang.Object
org.stianloader.softmap.SimpleFramedRemapper
- All Implemented Interfaces:
FramedRemapper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.stianloader.softmap.FramedRemapper
FramedRemapper.RemapperFrame -
Constructor Summary
ConstructorsConstructorDescriptionSimpleFramedRemapper(@NotNull @Unmodifiable Map<SimpleFramedRemapper.MethodLoc, SimpleFramedRemapper.MethodRealm> realms) -
Method Summary
Modifier and TypeMethodDescriptionvoidint@Nullable StringgetMappedClass(@NotNull String srcName) @Nullable StringgetMappedField(@NotNull String srcNameOwner, @NotNull String srcNameField, @NotNull String srcDescField) @Nullable StringgetMappedMethod(@NotNull String srcNameOwner, @NotNull String srcNameMethod, @NotNull String srcDescMethod) voidvoidmapField(@NotNull String owner, @NotNull String srcName, @NotNull String desc, @NotNull String dstName) voidmapMethod(@NotNull String owner, @NotNull String srcName, @NotNull String desc, @NotNull String dstName) void@NotNull FramedRemapper.RemapperFramepopFrame()voidvoidpushFrame(@NotNull FramedRemapper.RemapperFrame frame) Push a discarded frame back into the remapper as the uppermost frame.static @NotNull @Unmodifiable Map<@NotNull SimpleFramedRemapper.MethodLoc,@NotNull SimpleFramedRemapper.MethodRealm> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.stianloader.softmap.FramedRemapper
getMappedClassOpt, getMappedClassOpt, getMappedFieldOpt, getMappedFieldOpt, getMappedMethodOpt, getMappedMethodOpt
-
Constructor Details
-
SimpleFramedRemapper
public SimpleFramedRemapper(@NotNull @NotNull @Unmodifiable Map<SimpleFramedRemapper.MethodLoc, SimpleFramedRemapper.MethodRealm> realms)
-
-
Method Details
-
realmsOf
@NotNull public static @NotNull @Unmodifiable Map<@NotNull SimpleFramedRemapper.MethodLoc,@NotNull SimpleFramedRemapper.MethodRealm> realmsOf(@NotNull @Unmodifiable @NotNull List<@NotNull org.objectweb.asm.tree.ClassNode> nodes) -
discardFrame
public void discardFrame()- Specified by:
discardFramein interfaceFramedRemapper
-
exportToTinyV1
@NotNull @Contract(pure=true, value="-> new") public @NotNull @Unmodifiable List<@NotNull String> exportToTinyV1()- Specified by:
exportToTinyV1in interfaceFramedRemapper
-
getFrameCount
public int getFrameCount()- Specified by:
getFrameCountin interfaceFramedRemapper
-
getMappedClass
@Nullable @Contract(pure=true) public @Nullable String getMappedClass(@NotNull @NotNull String srcName) - Specified by:
getMappedClassin interfaceFramedRemapper
-
getMappedField
@Nullable public @Nullable String getMappedField(@NotNull @NotNull String srcNameOwner, @NotNull @NotNull String srcNameField, @NotNull @NotNull String srcDescField) - Specified by:
getMappedFieldin interfaceFramedRemapper
-
getMappedMethod
@Nullable @Contract(pure=true) public @Nullable String getMappedMethod(@NotNull @NotNull String srcNameOwner, @NotNull @NotNull String srcNameMethod, @NotNull @NotNull String srcDescMethod) - Specified by:
getMappedMethodin interfaceFramedRemapper
-
mapClass
@Contract(pure=false) public void mapClass(@NotNull @NotNull String srcOwner, @NotNull @NotNull String dstOwner) - Specified by:
mapClassin interfaceFramedRemapper
-
mapField
public void mapField(@NotNull @NotNull String owner, @NotNull @NotNull String srcName, @NotNull @NotNull String desc, @NotNull @NotNull String dstName) - Specified by:
mapFieldin interfaceFramedRemapper
-
mapMethod
@Contract(pure=false) public void mapMethod(@NotNull @NotNull String owner, @NotNull @NotNull String srcName, @NotNull @NotNull String desc, @NotNull @NotNull String dstName) - Specified by:
mapMethodin interfaceFramedRemapper
-
mergeFrame
@Contract(pure=false) public void mergeFrame()- Specified by:
mergeFramein interfaceFramedRemapper
-
popFrame
- Specified by:
popFramein interfaceFramedRemapper
-
pushFrame
@Contract(pure=false) public void pushFrame()- Specified by:
pushFramein interfaceFramedRemapper
-
pushFrame
Description copied from interface:FramedRemapperPush a discarded frame back into the remapper as the uppermost frame.The remapper is not required to accept any implementation of
FramedRemapper.RemapperFrame, as that interface is more or less a marker interface; However this method should accept anyFramedRemapper.RemapperFrameinstances emitted byFramedRemapper.popFrame().- Specified by:
pushFramein interfaceFramedRemapper- Parameters:
frame- The frame to push into the stack.
-