Package net.fabricmc.mappingio.tree
Interface MappingTreeView
- All Known Subinterfaces:
MappingTree,VisitableMappingTree
- All Known Implementing Classes:
MemoryMappingTree
public interface MappingTreeView
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(MappingVisitor visitor) voidaccept(MappingVisitor visitor, VisitOrder order) @Nullable MappingTreeView.ClassMappingViewdefault @Nullable MappingTreeView.ClassMappingViewCollection<? extends MappingTreeView.ClassMappingView> default @Nullable MappingTreeView.FieldMappingViewdefault @Nullable MappingTreeView.FieldMappingViewdefault intGet the maximum available namespace ID (exclusive).List<? extends MappingTreeView.MetadataEntryView> List<? extends MappingTreeView.MetadataEntryView> getMetadata(String key) default @Nullable MappingTreeView.MethodMappingViewdefault @Nullable MappingTreeView.MethodMappingViewdefault intGet the minimum available namespace ID (inclusive).default intgetNamespaceId(String namespace) default StringgetNamespaceName(int id) @Nullable Stringdefault StringmapClassName(String name, int namespace) default StringmapClassName(String name, int srcNamespace, int dstNamespace) default StringmapDesc(CharSequence desc, int namespace) default StringmapDesc(CharSequence desc, int srcNamespace, int dstNamespace) default StringmapDesc(CharSequence desc, int start, int end, int namespace) default StringmapDesc(CharSequence desc, int start, int end, int srcNamespace, int dstNamespace)
-
Field Details
-
SRC_NAMESPACE_ID
static final int SRC_NAMESPACE_ID- See Also:
-
MIN_NAMESPACE_ID
static final int MIN_NAMESPACE_ID- See Also:
-
NULL_NAMESPACE_ID
static final int NULL_NAMESPACE_ID- See Also:
-
-
Method Details
-
getSrcNamespace
- Returns:
- The source namespace, or
nullif the tree is uninitialized.
-
getDstNamespaces
- Returns:
- A list containing the destination namespaces, in order of their IDs. Can only be empty if the tree is uninitialized.
-
getMaxNamespaceId
default int getMaxNamespaceId()Get the maximum available namespace ID (exclusive). -
getMinNamespaceId
default int getMinNamespaceId()Get the minimum available namespace ID (inclusive). -
getNamespaceId
-
getNamespaceName
-
getMetadata
List<? extends MappingTreeView.MetadataEntryView> getMetadata() -
getMetadata
-
getClasses
Collection<? extends MappingTreeView.ClassMappingView> getClasses() -
getClass
-
getClass
-
getField
@Nullable default @Nullable MappingTreeView.FieldMappingView getField(String srcClsName, String srcName, @Nullable @Nullable String srcDesc) - See Also:
-
getField
@Nullable default @Nullable MappingTreeView.FieldMappingView getField(String clsName, String name, @Nullable @Nullable String desc, int namespace) -
getMethod
@Nullable default @Nullable MappingTreeView.MethodMappingView getMethod(String srcClsName, String srcName, @Nullable @Nullable String srcDesc) - See Also:
-
getMethod
@Nullable default @Nullable MappingTreeView.MethodMappingView getMethod(String clsName, String name, @Nullable @Nullable String desc, int namespace) - Parameters:
desc- Can be either complete desc or parameter-only desc.
-
accept
- Throws:
IOException
-
accept
- Throws:
IOException
-
mapClassName
-
mapClassName
-
mapDesc
-
mapDesc
-
mapDesc
-
mapDesc
-