Package VASSAL.script.expression
Class PropertyMatchExpression
java.lang.Object
VASSAL.script.expression.Expression
VASSAL.script.expression.PropertyMatchExpression
An old-style Property Match expression.
-
Field Summary
FieldsFields 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 itselfgetFilter(PropertySource ps)Return a PieceFilter using the expression.static Expressionprotected booleanOutput a BeanShell equivalent of this expression.Methods inherited from class VASSAL.script.expression.Expression
createExpression, createPropertyExpression, createSimplePropertyExpression, equals, evaluate, evaluate, evaluate, evaluate, getExpression, getFilter, handleError, hashCode, reset, resetCachedExpressions, setExpression, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate
-
Field Details
-
filter
-
-
Constructor Details
-
PropertyMatchExpression
-
-
Method Details
-
evaluate
Description 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.
-
getFilter
Description copied from class:ExpressionReturn a PieceFilter using the expression.- Overrides:
getFilterin classExpression- Parameters:
ps- PropertySource to use as source of filter- Returns:
- Created PieceFilter
-
isDynamic
protected boolean isDynamic() -
toBeanShellString
Description copied from class:ExpressionOutput a BeanShell equivalent of this expression.- Overrides:
toBeanShellStringin classExpression- Returns:
- BeanShell equivalent
-
instance
-