Class VisitOrder
java.lang.Object
net.fabricmc.mappingio.tree.VisitOrder
Visitation order configuration for
MappingTreeView.accept(net.fabricmc.mappingio.MappingVisitor, VisitOrder).- API Note:
- The exposed comparison methods aim to produce the most human-friendly output, their sorting order is not guaranteed to be stable across library versions unless specified otherwise.
-
Method Summary
Modifier and TypeMethodDescriptionclassComparator(Comparator<MappingTreeView.ClassMappingView> comparator) static intstatic intstatic <T extends MappingTreeView.ElementMappingView>
Comparator<T> static <T extends MappingTreeView.MemberMappingView>
Comparator<T> static <T extends MappingTreeView.MemberMappingView>
Comparator<T> static <T extends MappingTreeView.ElementMappingView>
Comparator<T> static intcompareNestaware(@Nullable String a, @Nullable String b) static intcompareNullLast(@Nullable String a, @Nullable String b) static intcompareShortFirst(@Nullable String a, @Nullable String b) static intcompareShortFirst(String a, int startA, int endA, String b, int startB, int endB) static intcompareShortFirstNestaware(@Nullable String a, @Nullable String b) static VisitOrderstatic VisitOrderSorts classes by their source name, members by source name and descriptor, and locals by lv- and lvt-index.fieldComparator(Comparator<MappingTreeView.FieldMappingView> comparator) booleanbooleanmethodComparator(Comparator<MappingTreeView.MethodMappingView> comparator) methodsFirst(boolean methodsFirst) methodVarsFirst(boolean varsFirst) <T extends MappingTreeView.ClassMappingView>
Collection<T> sortClasses(Collection<T> classes) <T extends MappingTreeView.FieldMappingView>
Collection<T> sortFields(Collection<T> fields) <T extends MappingTreeView.MethodArgMappingView>
Collection<T> sortMethodArgs(Collection<T> args) <T extends MappingTreeView.MethodMappingView>
Collection<T> sortMethods(Collection<T> methods) <T extends MappingTreeView.MethodVarMappingView>
Collection<T> sortMethodVars(Collection<T> vars)
-
Method Details
-
createByInputOrder
-
createByName
Sorts classes by their source name, members by source name and descriptor, and locals by lv- and lvt-index.- API Note:
- The sorting order is not guaranteed to be stable across library versions.
-
classComparator
-
classesBySrcName
-
classesBySrcNameShortFirst
-
fieldComparator
-
fieldsBySrcNameDesc
-
methodComparator
-
methodsBySrcNameDesc
-
methodArgComparator
-
methodArgsByPosition
-
methodArgsByLvIndex
-
methodVarComparator
-
methodVarsByLvtRowIndex
-
methodVarsByLvIndex
-
methodsFirst
-
fieldsFirst
-
methodsFirst
-
methodVarsFirst
-
methodArgsFirst
-
methodVarsFirst
-
compareBySrcName
-
compareBySrcNameDesc
-
compareBySrcNameShortFirst
public static <T extends MappingTreeView.ElementMappingView> Comparator<T> compareBySrcNameShortFirst() -
compareBySrcNameDescShortFirst
public static <T extends MappingTreeView.MemberMappingView> Comparator<T> compareBySrcNameDescShortFirst() -
compare
-
compare
-
compareShortFirst
-
compareShortFirst
-
compareNestaware
-
compareShortFirstNestaware
-
compareNullLast
-
sortClasses
public <T extends MappingTreeView.ClassMappingView> Collection<T> sortClasses(Collection<T> classes) -
sortFields
-
sortMethods
public <T extends MappingTreeView.MethodMappingView> Collection<T> sortMethods(Collection<T> methods) -
sortMethodArgs
public <T extends MappingTreeView.MethodArgMappingView> Collection<T> sortMethodArgs(Collection<T> args) -
sortMethodVars
public <T extends MappingTreeView.MethodVarMappingView> Collection<T> sortMethodVars(Collection<T> vars) -
isMethodsFirst
public boolean isMethodsFirst() -
isMethodVarsFirst
public boolean isMethodVarsFirst()
-