Package VASSAL.script.expression
Class SinglePropertyExpression
java.lang.Object
VASSAL.script.expression.Expression
VASSAL.script.expression.SinglePropertyExpression
An expression consisting of a single property name
-
Field Summary
Fields inherited from class VASSAL.script.expression.Expression
CACHE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(PropertySource ps, Map<String,String> properties, boolean localized)Each subclass must implement evaluate() to evaluate itselfstatic ExpressionOutput 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, handleError, hashCode, reset, resetCachedExpressions, setExpression, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate
-
Constructor Details
-
SinglePropertyExpression
-
-
Method Details
-
evaluate
public String evaluate(PropertySource ps, Map<String,String> properties, boolean localized) throws ExpressionExceptionDescription copied from class:ExpressionEach subclass must implement evaluate() to evaluate itself- Overrides:
evaluatein classExpression- Parameters:
ps- Property Source providing property valuesproperties- default property valueslocalized- localize property calls?- Returns:
- evaluated String.
- Throws:
ExpressionException
-
toBeanShellString
Description copied from class:ExpressionOutput a BeanShell equivalent of this expression.- Overrides:
toBeanShellStringin classExpression- Returns:
- BeanShell equivalent
-
instance
-