Package VASSAL.script.expression
Class FormattedStringExpression
java.lang.Object
VASSAL.script.expression.Expression
VASSAL.script.expression.FormattedStringExpression
Report Format or old-style Formatted String expression containing at
least one $variable$ name reference
-
Field Summary
Fields inherited from class VASSAL.script.expression.Expression
CACHE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevaluate
(PropertySource ps, Map<String, String> properties, boolean localized) Deprecated.evaluate
(PropertySource ps, Map<String, String> properties, boolean localized, Auditable owner, AuditTrail audit) Each subclass must implement evaluate() to evaluate itself The default implementation just returns the expression itself, which works correctly for simple Expression types like NullExpression and IntExpression.static Expression
Convert to a BeanShell expressionMethods inherited from class VASSAL.script.expression.Expression
createExpression, createPropertyExpression, createSimplePropertyExpression, equals, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, getExpression, getFilter, getFilter, getFilter, getFilter, handleError, hashCode, quietEvaluate, quietEvaluate, reset, resetCachedExpressions, setExpression, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate
-
Constructor Details
-
FormattedStringExpression
-
-
Method Details
-
evaluate
@Deprecated(since="2021-06-11") public String evaluate(PropertySource ps, Map<String, String> properties, boolean localized) Deprecated.Evaluate this expression. NB. Code moved from FormattedString.java- Overrides:
evaluate
in classExpression
-
evaluate
public String evaluate(PropertySource ps, Map<String, String> properties, boolean localized, Auditable owner, AuditTrail audit) Description copied from class:Expression
Each subclass must implement evaluate() to evaluate itself The default implementation just returns the expression itself, which works correctly for simple Expression types like NullExpression and IntExpression.- Overrides:
evaluate
in classExpression
- Parameters:
ps
- Property Source providing property valuesproperties
- default property valueslocalized
- localize property calls?audit
- Audit trail to record expression evaluation info in- Returns:
- evaluated String.
-
toBeanShellString
Convert to a BeanShell expression- Overrides:
toBeanShellString
in classExpression
- Returns:
- BeanShell equivalent
-
instance
-
evaluate(PropertySource, Map, boolean, Auditable, AuditTrail)