Class ExpressionUtils

java.lang.Object
me.hsgamer.hscore.expression.ExpressionUtils

public final class ExpressionUtils extends Object
The expression manager
  • Method Details

    • registerFunction

      public static void registerFunction(String name, com.ezylang.evalex.functions.FunctionIfc function)
      Register a function
      Parameters:
      name - the name of the function
      function - the function
    • registerOperator

      public static void registerOperator(String name, com.ezylang.evalex.operators.OperatorIfc operator)
      Register an operator
      Parameters:
      name - the name of the operator
      operator - the operator
    • getExpressionConfigurationModifier

      public static Function<com.ezylang.evalex.config.ExpressionConfiguration,com.ezylang.evalex.config.ExpressionConfiguration> getExpressionConfigurationModifier()
      Get the expression configuration modifier
      Returns:
      the expression configuration modifier
    • getDefaultExpressionConfiguration

      public static com.ezylang.evalex.config.ExpressionConfiguration getDefaultExpressionConfiguration()
      Get the default expression configuration
      Returns:
      the expression configuration
    • applyExpressionConfigurationModifier

      public static com.ezylang.evalex.config.ExpressionConfiguration applyExpressionConfigurationModifier(com.ezylang.evalex.config.ExpressionConfiguration configuration)
      Apply the modifier to the expression configuration
      Parameters:
      configuration - the configuration
      Returns:
      the modified configuration