Interface MappingTree.ClassMapping
- All Superinterfaces:
MappingTree.ElementMapping, MappingTreeView.ClassMappingView, MappingTreeView.ElementMappingView
- Enclosing interface:
MappingTree
public static interface MappingTree.ClassMapping
extends MappingTree.ElementMapping, MappingTreeView.ClassMappingView
-
Method Summary
Modifier and TypeMethodDescriptionaddField(MappingTree.FieldMapping field) Merges a field mapping into the class.addMethod(MappingTree.MethodMapping method) Merges a method mapping into the class.@Nullable MappingTree.FieldMappingdefault @Nullable MappingTree.FieldMappingCollection<? extends MappingTree.FieldMapping> @Nullable MappingTree.MethodMappingdefault @Nullable MappingTree.MethodMappingCollection<? extends MappingTree.MethodMapping> @Nullable MappingTree.FieldMappingremoveField(String srcName, @Nullable String srcDesc) Removes a field mapping from the class.@Nullable MappingTree.MethodMappingremoveMethod(String srcName, @Nullable String srcDesc) Removes a method mapping from the class.Methods inherited from interface MappingTree.ElementMapping
getTree, setComment, setDstNameMethods inherited from interface MappingTreeView.ElementMappingView
getComment, getDstName, getName, getName, getSrcName
-
Method Details
-
getFields
Collection<? extends MappingTree.FieldMapping> getFields()- Specified by:
getFieldsin interfaceMappingTreeView.ClassMappingView
-
getField
@Nullable @Nullable MappingTree.FieldMapping getField(String srcName, @Nullable @Nullable String srcDesc) - Specified by:
getFieldin interfaceMappingTreeView.ClassMappingView- See Also:
-
getField
@Nullable default @Nullable MappingTree.FieldMapping getField(String name, @Nullable @Nullable String desc, int namespace) - Specified by:
getFieldin interfaceMappingTreeView.ClassMappingView- See Also:
-
addField
Merges a field mapping into the class.- Returns:
- The
MappingTree.FieldMappinginstance present in the parentMappingTree.ClassMappingafter the merge has occurred. May or may not be the passed instance.
-
removeField
@Nullable @Nullable MappingTree.FieldMapping removeField(String srcName, @Nullable @Nullable String srcDesc) Removes a field mapping from the class.- Returns:
- The removed field mapping, if any.
-
getMethods
Collection<? extends MappingTree.MethodMapping> getMethods()- Specified by:
getMethodsin interfaceMappingTreeView.ClassMappingView
-
getMethod
@Nullable @Nullable MappingTree.MethodMapping getMethod(String srcName, @Nullable @Nullable String srcDesc) - Specified by:
getMethodin interfaceMappingTreeView.ClassMappingView- See Also:
-
getMethod
@Nullable default @Nullable MappingTree.MethodMapping getMethod(String name, @Nullable @Nullable String desc, int namespace) - Specified by:
getMethodin interfaceMappingTreeView.ClassMappingView- See Also:
-
addMethod
Merges a method mapping into the class.- Returns:
- The
MappingTree.MethodMappinginstance present in the parentMappingTree.ClassMappingafter the merge has occurred. May or may not be the passed instance.
-
removeMethod
@Nullable @Nullable MappingTree.MethodMapping removeMethod(String srcName, @Nullable @Nullable String srcDesc) Removes a method mapping from the class.- Returns:
- The removed method mapping, if any.
-