Package VASSAL.script.expression
Class StringExpression
java.lang.Object
VASSAL.script.expression.Expression
VASSAL.script.expression.StringExpression
public class StringExpression extends Expression
An expression consisting of a String only
-
Constructor Summary
Constructors Constructor Description StringExpression(String s)
-
Method Summary
Modifier and Type Method Description String
evaluate(PropertySource ps, Map<String,String> properties, boolean localized)
Each subclass must implement evaluate() to evaluate itselfString
toBeanShellString()
Output a BeanShell equivalent of this expression.Methods inherited from class VASSAL.script.expression.Expression
createExpression, createPropertyExpression, createSimplePropertyExpression, equals, evaluate, evaluate, evaluate, evaluate, getExpression, getFilter, getFilter, hashCode, setExpression
-
Constructor Details
-
StringExpression
-
-
Method Details
-
evaluate
Description copied from class:Expression
Each subclass must implement evaluate() to evaluate itself- Specified by:
evaluate
in classExpression
- Parameters:
ps
- Property Source providing property valuesproperties
- default property valueslocalized
- localize property calls?- Returns:
- evaluated String.
-
toBeanShellString
Description copied from class:Expression
Output a BeanShell equivalent of this expression.- Specified by:
toBeanShellString
in classExpression
- Returns:
- BeanShell equivalent
-