Class ReplacerAdapter

All Implemented Interfaces:
Replacer, Report, Reporter, Runnable

public class ReplacerAdapter extends ReporterAdapter implements Replacer
Provide a macro Domain. This Domain can replace variables in strings based on a properties and a domain. The domain can implement functions that start with a "_" and take args[], the names of these functions are available as functions in the macro Domain (without the _). Macros can nest to any depth but may not contain loops. Add POSIX macros: ${#parameter} String length. ${parameter%word} Remove smallest suffix pattern. ${parameter%%word} Remove largest suffix pattern. ${parameter#word} Remove smallest prefix pattern. ${parameter##word} Remove largest prefix pattern.
  • Field Details

    • random

      static final Random random
    • WILDCARD

      private static final Pattern WILDCARD
    • domain

      Domain domain
    • targets

      List<Object> targets
    • flattening

      boolean flattening
    • base

      File base
    • reporter

      Reporter reporter
    • commands

      private static final Pattern commands
      Parse the key as a command. A command consist of parameters separated by ':'.
    • _uniqHelp

      static String _uniqHelp
      Return a unique list where the duplicates are removed.
    • _filterHelp

      static String _filterHelp
    • _sortHelp

      static String _sortHelp
    • _nsortHelp

      static String _nsortHelp
    • _joinHelp

      static String _joinHelp
    • _ifHelp

      static String _ifHelp
    • DATE_TOSTRING

      private static final DateTimeFormatter DATE_TOSTRING
    • _fmodifiedHelp

      public static final String _fmodifiedHelp
      See Also:
    • _toclassnameHelp

      static String _toclassnameHelp
      toclassname ; .class ( , .class ) *
    • _toclasspathHelp

      static String _toclasspathHelp
      toclassname ; .class ( , .class ) *
    • _fileHelp

      @Deprecated public static final String _fileHelp
      Deprecated.
      See Also:
    • _osfileHelp

      static final String _osfileHelp
      See Also:
  • Constructor Details

    • ReplacerAdapter

      public ReplacerAdapter(Domain domain)
    • ReplacerAdapter

      public ReplacerAdapter(Map<String,String> domain)
  • Method Details