Interface MappingTreeView
- All Known Subinterfaces:
MappingTree, VisitableMappingTree
- All Known Implementing Classes:
MemoryMappingTree
public interface MappingTreeView
Read-only mapping tree.
All returned collections are to be assumed unmodifiable, unless implementation-specific documentation states otherwise.
-
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 intList<? extends MappingTreeView.MetadataEntryView> List<? extends MappingTreeView.MetadataEntryView> getMetadata(String key) default @Nullable MappingTreeView.MethodMappingViewdefault @Nullable MappingTreeView.MethodMappingViewdefault intdefault 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
-
getMaxNamespaceId
default int getMaxNamespaceId()- Returns:
- The maximum available namespace ID (exclusive).
-
getMinNamespaceId
default int getMinNamespaceId()- Returns:
- The minimum available namespace ID (inclusive).
-
getNamespaceId
-
getNamespaceName
-
getMetadata
List<? extends MappingTreeView.MetadataEntryView> getMetadata()- Returns:
- A 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
- Returns:
- A list of all currently present metadata entries 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.
-
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
-