Package net.fabricmc.mappingio.tree
Interface MappingTree.MethodMapping
- All Superinterfaces:
MappingTree.ElementMapping,MappingTree.MemberMapping,MappingTreeView.ElementMappingView,MappingTreeView.MemberMappingView,MappingTreeView.MethodMappingView
- Enclosing interface:
MappingTree
public static interface MappingTree.MethodMapping
extends MappingTree.MemberMapping, MappingTreeView.MethodMappingView
-
Method Summary
Modifier and TypeMethodDescriptionMerges a variable mapping into the method.@Nullable MappingTree.MethodArgMappingCollection<? extends MappingTree.MethodArgMapping> getArgs()@Nullable MappingTree.MethodVarMappingCollection<? extends MappingTree.MethodVarMapping> getVars()@Nullable MappingTree.MethodArgMappingRemoves an argument mapping from the method.@Nullable MappingTree.MethodVarMappingRemoves a variable mapping from the method.Methods inherited from interface net.fabricmc.mappingio.tree.MappingTree.ElementMapping
getTree, setComment, setDstNameMethods inherited from interface net.fabricmc.mappingio.tree.MappingTree.MemberMapping
getOwner, setSrcDescMethods inherited from interface net.fabricmc.mappingio.tree.MappingTreeView.ElementMappingView
getComment, getDstName, getName, getName, getSrcNameMethods inherited from interface net.fabricmc.mappingio.tree.MappingTreeView.MemberMappingView
getDesc, getDesc, getDstDesc, getSrcDesc
-
Method Details
-
getArgs
Collection<? extends MappingTree.MethodArgMapping> getArgs()- Specified by:
getArgsin interfaceMappingTreeView.MethodMappingView
-
getArg
@Nullable @Nullable MappingTree.MethodArgMapping getArg(int argPosition, int lvIndex, @Nullable @Nullable String srcName) - Specified by:
getArgin interfaceMappingTreeView.MethodMappingView
-
addArg
-
removeArg
@Nullable @Nullable MappingTree.MethodArgMapping removeArg(int argPosition, int lvIndex, @Nullable @Nullable String srcName) Removes an argument mapping from the method.- Returns:
- The removed argument mapping, if any.
-
getVars
Collection<? extends MappingTree.MethodVarMapping> getVars()- Specified by:
getVarsin interfaceMappingTreeView.MethodMappingView
-
getVar
@Nullable @Nullable MappingTree.MethodVarMapping getVar(int lvtRowIndex, int lvIndex, int startOpIdx, int endOpIdx, @Nullable @Nullable String srcName) - Specified by:
getVarin interfaceMappingTreeView.MethodMappingView
-
addVar
Merges a variable mapping into the method.- Returns:
- The
MappingTree.MethodVarMappinginstance present in the parentMappingTree.MethodMappingafter the merge has occurred. May or may not be the passed instance.
-
removeVar
@Nullable @Nullable MappingTree.MethodVarMapping removeVar(int lvtRowIndex, int lvIndex, int startOpIdx, int endOpIdx, @Nullable @Nullable String srcName) Removes a variable mapping from the method.- Returns:
- The removed variable mapping, if any.
-