Package VASSAL.script.expression
Class PropertyMatchExpression
java.lang.Object
VASSAL.script.expression.Expression
VASSAL.script.expression.PropertyMatchExpression
public class PropertyMatchExpression extends Expression
An old-style Property Match expression.
-
Field Summary
Fields Modifier and Type Field Description protected PieceFilter
filter
-
Constructor Summary
Constructors Constructor Description PropertyMatchExpression(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 itselfPieceFilter
getFilter(PropertySource ps)
Return a PieceFilter using the expression.protected boolean
isDynamic()
String
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, hashCode, setExpression
-
Field Details
-
filter
-
-
Constructor Details
-
PropertyMatchExpression
-
-
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.
-
getFilter
Description copied from class:Expression
Return a PieceFilter using the expression.- Overrides:
getFilter
in classExpression
- Parameters:
ps
- PropertySource to use as source of filter- Returns:
- Created PieceFilter
-
isDynamic
protected boolean isDynamic() -
toBeanShellString
Description copied from class:Expression
Output a BeanShell equivalent of this expression.- Specified by:
toBeanShellString
in classExpression
- Returns:
- BeanShell equivalent
-