Class FormattedStringExpression

java.lang.Object
VASSAL.script.expression.Expression
VASSAL.script.expression.FormattedStringExpression

public class FormattedStringExpression extends Expression
Report Format or old-style Formatted String expression containing at least one $variable$ name reference
  • Constructor Details

    • FormattedStringExpression

      public FormattedStringExpression(String s)
  • Method Details

    • evaluate

      public String evaluate(PropertySource ps, Map<String,​String> properties, boolean localized)
      Evaluate this expression. NB. Code moved from FormattedString.java
      Overrides:
      evaluate in class Expression
      Parameters:
      ps - Property Source providing property values
      properties - default property values
      localized - localize property calls?
      Returns:
      evaluated String.
    • toBeanShellString

      public String toBeanShellString()
      Convert to a BeanShell expression
      Overrides:
      toBeanShellString in class Expression
      Returns:
      BeanShell equivalent
    • instance

      public static Expression instance(String s)