Package VASSAL.tools

Class FormattedString

java.lang.Object
VASSAL.tools.FormattedString
All Implemented Interfaces:
Auditable, RecursionLimiter.Loopable
Direct Known Subclasses:
PlayerIdFormattedString

public class FormattedString extends Object implements RecursionLimiter.Loopable
FormattedString.java A String that can include options of the form $optionName$. Option values are maintained in a property list and getText returns the string will all options replaced by their value. FormattedStrings are ultimately evaluated using the Beanshell Interpreter, so a Formatted String can be specified as a valid BeanShell expression surrounded by {}'s. For this reason, full support is included for generating Expression Audit Trails to be parsed inward the the Expression interpreter.