public class MappingsFiller
extends java.lang.Object
| Constructor and Description |
|---|
MappingsFiller() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fillAllSuperMembers(Mappings mappings,
ClassInfoProvider classInfoProvider)
Fill all super members of all classes in the mappings.
It will fill the super members for all classes that are mentioned in the mappings. |
static void |
fillAllSuperMembers(Mappings mappings,
ClassInfoProvider classInfoProvider,
java.util.Set<java.lang.String> classes)
Fill all super members of all classes in the mappings.
Exceptions during the filling process will be printed to the standard error output, but the process will continue. |
static void |
fillAllSuperMembers(Mappings mappings,
ClassInfoProvider classInfoProvider,
java.util.Set<java.lang.String> classes,
java.util.function.BiPredicate<java.lang.String,java.lang.Throwable> onError)
Fill all super members of all classes in the mappings.
|
static void |
fillSuperMembers(ClassInfo info,
java.util.Set<ClassInfo> superClasses,
Mappings mappings)
Copy the field and method mappings of the super classes to the given class.
This is required for the correct remapping of fields and methods. When invoking methods of super classes, the method owner of the instruction is the class where the method is invoked on and not the owner of the method itself. This means during the remapping process the method owner is wrong and the method will not be found in the mappings. To fix this, the method mappings of the super classes are copied to the class where the method could be invoked on. |
static void |
fillSuperMembers(org.objectweb.asm.tree.ClassNode node,
java.util.Set<org.objectweb.asm.tree.ClassNode> superClasses,
Mappings mappings)
Copy the field and method mappings of the super classes to the given class.
This is required for the correct remapping of fields and methods. When invoking methods of super classes, the method owner of the instruction is the class where the method is invoked on and not the owner of the method itself. This means during the remapping process the method owner is wrong and the method will not be found in the mappings. To fix this, the method mappings of the super classes are copied to the class where the method could be invoked on. |
public static void fillAllSuperMembers(Mappings mappings, ClassInfoProvider classInfoProvider)
mappings - The mappingsclassInfoProvider - The class info providerfillSuperMembers(ClassNode, Set, Mappings)public static void fillAllSuperMembers(Mappings mappings, ClassInfoProvider classInfoProvider, java.util.Set<java.lang.String> classes)
mappings - The mappingsclassInfoProvider - The class info providerclasses - The classes to fill the super members forfillSuperMembers(ClassNode, Set, Mappings)public static void fillAllSuperMembers(Mappings mappings, ClassInfoProvider classInfoProvider, java.util.Set<java.lang.String> classes, java.util.function.BiPredicate<java.lang.String,java.lang.Throwable> onError)
mappings - The mappingsclassInfoProvider - The class info providerclasses - The classes to fill the super members foronError - The error predicate receiving the class name and the throwable if an error occurs.
Returning true will continue with the next class, false will rethrow the exception.fillSuperMembers(ClassNode, Set, Mappings)public static void fillSuperMembers(ClassInfo info, java.util.Set<ClassInfo> superClasses, Mappings mappings)
info - The class infosuperClasses - The super classes of the classmappings - The mappingspublic static void fillSuperMembers(org.objectweb.asm.tree.ClassNode node,
java.util.Set<org.objectweb.asm.tree.ClassNode> superClasses,
Mappings mappings)
node - The class nodesuperClasses - The super classes of the classmappings - The mappings