Class MutableNameRewriter

    • Constructor Detail

      • MutableNameRewriter

        public MutableNameRewriter​(NameRewriter target)
        Construct a new instance.
        Parameters:
        target - the target rewriter (not null)
      • MutableNameRewriter

        public MutableNameRewriter()
        Construct a new instance with the identity rewriter.
    • Method Detail

      • rewriteName

        public String rewriteName​(String original)
        Description copied from interface: NameRewriter
        Rewrite a name. Must not return null.
        Specified by:
        rewriteName in interface NameRewriter
        Parameters:
        original - the original name (must not be null)
        Returns:
        the rewritten name, or null if the name is invalid
      • setTarget

        public void setTarget​(NameRewriter target)
        Set the target rewriter.
        Parameters:
        target - the target rewriter (not null)