Class PropertyReplacingStringProcessor

java.lang.Object
cloud.commandframework.annotations.PatternReplacingStringProcessor
cloud.commandframework.annotations.PropertyReplacingStringProcessor
All Implemented Interfaces:
StringProcessor

public class PropertyReplacingStringProcessor extends PatternReplacingStringProcessor
PropertyReplacingStringProcessor.PropertyReplacementProvider that replaces all sub-strings with the format ${some.property} with a function-generated string.
Since:
1.7.0
  • Field Details

    • PROPERTY_REGEX

      public static final Pattern PROPERTY_REGEX
  • Constructor Details

    • PropertyReplacingStringProcessor

      public PropertyReplacingStringProcessor(@NonNull Function<@NonNull String,@Nullable String> replacementProvider)
      Creates a new property replacing string processor.
      Parameters:
      replacementProvider - function generating the replacement strings