Class RuleUtils


  • public class RuleUtils
    extends Object
    Utils for the Metadata. Will be likely moved to Windup Utils.
    Author:
    Ondrej Zizka
    • Constructor Detail

      • RuleUtils

        public RuleUtils()
    • Method Detail

      • prettyPrintRule

        public static String prettyPrintRule​(org.ocpsoft.rewrite.config.Rule rule)
        Describes given Rule as:

        ID: Phase - Provider [tags ...]".

      • ruleToRuleContentsString

        public static String ruleToRuleContentsString​(org.ocpsoft.rewrite.config.Rule originalRule,
                                                      int indentLevel)
        Attempts to create a human-readable String representation of the provided rule.