Package net.fabricmc.mappingio.tree
Interface MappingTree
- All Superinterfaces:
MappingTreeView
- All Known Subinterfaces:
VisitableMappingTree
- All Known Implementing Classes:
MemoryMappingTree
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfaceNested classes/interfaces inherited from interface net.fabricmc.mappingio.tree.MappingTreeView
MappingTreeView.ClassMappingView, MappingTreeView.ElementMappingView, MappingTreeView.FieldMappingView, MappingTreeView.MemberMappingView, MappingTreeView.MetadataEntryView, MappingTreeView.MethodArgMappingView, MappingTreeView.MethodMappingView, MappingTreeView.MethodVarMappingView -
Field Summary
Fields inherited from interface net.fabricmc.mappingio.tree.MappingTreeView
MIN_NAMESPACE_ID, NULL_NAMESPACE_ID, SRC_NAMESPACE_ID -
Method Summary
Modifier and TypeMethodDescriptionvoiddefault MappingTree.ClassMappingCollection<? extends MappingTree.ClassMapping>default MappingTree.FieldMappingdefault MappingTree.FieldMappingList<? extends MappingTree.MetadataEntry>List<? extends MappingTree.MetadataEntry>getMetadata(String key) default MappingTree.MethodMappingdefault MappingTree.MethodMappingremoveClass(String srcName) booleanremoveMetadata(String key) Removes all metadata entries whose key is equal to the passed one.setDstNamespaces(List<String> namespaces) setSrcNamespace(String namespace) Methods inherited from interface net.fabricmc.mappingio.tree.MappingTreeView
accept, accept, getDstNamespaces, getMaxNamespaceId, getMinNamespaceId, getNamespaceId, getNamespaceName, getSrcNamespace, mapClassName, mapClassName, mapDesc, mapDesc, mapDesc, mapDesc
-
Method Details
-
setSrcNamespace
-
setDstNamespaces
-
getMetadata
List<? extends MappingTree.MetadataEntry> getMetadata()- Specified by:
getMetadatain interfaceMappingTreeView- Returns:
- A modifiable list of all metadata entries currently present in the tree. The list's order is equal to the order in which the entries have been originally added.
-
getMetadata
- Specified by:
getMetadatain interfaceMappingTreeView- Returns:
- An unmodifiable list of all metadata entries currently present in the tree whose key is equal to the passed one. The list's order is equal to the order in which the entries have been originally added.
-
addMetadata
-
removeMetadata
Removes all metadata entries whose key is equal to the passed one.- Returns:
- Whether or not any entries have been removed.
-
getClasses
Collection<? extends MappingTree.ClassMapping> getClasses()- Specified by:
getClassesin interfaceMappingTreeView
-
getClass
- Specified by:
getClassin interfaceMappingTreeView
-
getClass
- Specified by:
getClassin interfaceMappingTreeView
-
addClass
-
removeClass
-
getField
- Specified by:
getFieldin interfaceMappingTreeView- See Also:
-
getField
default MappingTree.FieldMapping getField(String ownerName, String name, String desc, int namespace) - Specified by:
getFieldin interfaceMappingTreeViewdesc- Nullable.
-
getMethod
- Specified by:
getMethodin interfaceMappingTreeView- See Also:
-
getMethod
default MappingTree.MethodMapping getMethod(String ownerName, String name, String desc, int namespace) - Specified by:
getMethodin interfaceMappingTreeViewdesc- Nullable. Can be either complete desc or parameter-only desc.
-