Class UnpickV3Remapper
java.lang.Object
daomephsta.unpick.constantmappers.datadriven.tree.UnpickV3Visitor
daomephsta.unpick.constantmappers.datadriven.tree.ForwardingUnpickV3Visitor
daomephsta.unpick.constantmappers.datadriven.parser.v3.UnpickV3Remapper
Remaps all class, field, and method names in a .unpick v3 file. Visitor methods will be called on the downstream
visitor with the remapped names. All class names use "." format, not "/" format.
-
Field Summary
Fields inherited from class daomephsta.unpick.constantmappers.datadriven.tree.ForwardingUnpickV3Visitor
downstream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of all unmapped classes in the given unmapped package.protected abstract StringgetFieldDesc(String className, String fieldName) Gets the descriptor of a field given only its name and owner.protected abstract StringmapClassName(String className) Maps a class name.protected abstract StringmapFieldName(String className, String fieldName, String fieldDesc) Maps a field name.protected abstract StringmapMethodName(String className, String methodName, String methodDesc) Maps a method name.voidvisitGroupDefinition(GroupDefinition groupDefinition) voidvisitTargetAnnotation(TargetAnnotation targetAnnotation) voidvisitTargetField(TargetField targetField) voidvisitTargetMethod(TargetMethod targetMethod) Methods inherited from class daomephsta.unpick.constantmappers.datadriven.tree.ForwardingUnpickV3Visitor
visitHeader
-
Constructor Details
-
UnpickV3Remapper
-
-
Method Details
-
visitGroupDefinition
- Overrides:
visitGroupDefinitionin classForwardingUnpickV3Visitor
-
visitTargetField
- Overrides:
visitTargetFieldin classForwardingUnpickV3Visitor
-
visitTargetMethod
- Overrides:
visitTargetMethodin classForwardingUnpickV3Visitor
-
visitTargetAnnotation
- Overrides:
visitTargetAnnotationin classForwardingUnpickV3Visitor
-
mapClassName
Maps a class name. The input class name uses "." format not "/" format, and so should the output class name. -
mapFieldName
Maps a field name. The input class name uses "." format not "/" format. The descriptor is as normal (using "/" for class names). -
mapMethodName
Maps a method name. The input class name uses "." format not "/" format. The descriptor is as normal (using "/" for class names). -
getClassesInPackage
Returns a list of all unmapped classes in the given unmapped package. The package name uses "." format not "/" format, and so should the output class names. The output class names should be fully qualified. Classes in subpackages are not considered as inside the parent package for the purposes of this method. That is, if the classfoo.bar.Bazexists, thengetClassesInPackage("foo.bar")should return that class, butgetClassesInPackage("foo")should not. -
getFieldDesc
Gets the descriptor of a field given only its name and owner. The input class name uses "." format not "/" format. The returned descriptor is as normal (using "/" for class names).
-