Class ExpressionTools


  • public class ExpressionTools
    extends Object
    Provides helpers for OBFL-expressions.
    • Method Detail

      • resolveVariables

        public static String resolveVariables​(String expr,
                                              Map<String,​String> variables)
        Resolves $-prefixed variables in the input string.
        Parameters:
        expr - the input string
        variables - the variables
        Returns:
        returns the resolved string
      • resolveVariables

        public static String resolveVariables​(String expr,
                                              String... vars)
        Resolves $-prefixed variables in the input string.
        Parameters:
        expr - the input string
        vars - the variables
        Returns:
        returns the resolved string