Package VASSAL.script.expression
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 Summary
Constructors Constructor Description FormattedStringExpression(String s) -
Method Summary
Modifier and Type Method Description Stringevaluate(PropertySource ps, Map<String,String> properties, boolean localized)Evaluate this expression.StringtoBeanShellString()Convert to a BeanShell expressionMethods inherited from class VASSAL.script.expression.Expression
createExpression, createPropertyExpression, createSimplePropertyExpression, equals, evaluate, evaluate, evaluate, evaluate, getExpression, getFilter, getFilter, hashCode, setExpression
-
Constructor Details
-
FormattedStringExpression
-
-
Method Details
-
evaluate
Evaluate this expression. NB. Code moved from FormattedString.java- Specified by:
evaluatein classExpression- Parameters:
ps- Property Source providing property valuesproperties- default property valueslocalized- localize property calls?- Returns:
- evaluated String.
-
toBeanShellString
Convert to a BeanShell expression- Specified by:
toBeanShellStringin classExpression- Returns:
- BeanShell equivalent
-