Class VariableExpansion


  • public final class VariableExpansion
    extends java.lang.Object
    • Method Detail

      • expand

        public static final java.lang.String expand​(java.lang.String input,
                                                    VariableExpansion.Resolver resolver)
                                             throws VariableExpansion.UnresolvedVariableException,
                                                    java.lang.IllegalArgumentException,
                                                    java.lang.NullPointerException
        Expands any variables found in the given input string.
        Parameters:
        input - the string to expand any variables in
        resolver - the resolver to use
        Returns:
        the expanded output
        Throws:
        VariableExpansion.UnresolvedVariableException - If a variable without a default can't be expanded because it (or indirectly its value) is not resolvable.
        java.lang.IllegalArgumentException - if an argument can't be expanded due to other issue with the input.
        java.lang.NullPointerException - if a resolver is not supplied