Class TypeRewriter

java.lang.Object
org.jf.dexlib2.rewriter.TypeRewriter
All Implemented Interfaces:
Rewriter<String>

public class TypeRewriter extends Object implements Rewriter<String>
  • Constructor Details

    • TypeRewriter

      public TypeRewriter()
  • Method Details

    • rewrite

      @Nonnull public String rewrite(@Nonnull String value)
      Specified by:
      rewrite in interface Rewriter<String>
    • rewriteUnwrappedType

      @Nonnull protected String rewriteUnwrappedType(@Nonnull String value)
      This is called by the default rewrite implementation with the unwrapped type.

      For array types, the unwrapped type is the type with the array specifiers removed. And there is no difference for non-array types.

      Parameters:
      value - The unwrapped type
      Returns:
      The modified version of the unwrapped type. This will be re-array-ified if the original wrapped type was an array.