Package VASSAL.script.expression
Class PropertyMatchExpression
java.lang.Object
VASSAL.script.expression.Expression
VASSAL.script.expression.PropertyMatchExpression
-
Field Summary
Fields inherited from class VASSAL.script.expression.Expression
CACHE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevaluate
(PropertySource ps, Map<String, String> properties, boolean localized) Deprecated.Deprecated.getFilter
(PropertySource ps, Auditable owner, AuditTrail audit) Return a PieceFilter using the expression.static Expression
protected boolean
Output a BeanShell equivalent of this expression.Methods inherited from class VASSAL.script.expression.Expression
createExpression, createPropertyExpression, createSimplePropertyExpression, equals, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, getExpression, getFilter, getFilter, handleError, hashCode, quietEvaluate, quietEvaluate, reset, resetCachedExpressions, setExpression, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate, tryEvaluate
-
Field Details
-
filter
-
-
Constructor Details
-
PropertyMatchExpression
-
-
Method Details
-
evaluate
@Deprecated(since="2021-06-11") public String evaluate(PropertySource ps, Map<String, String> properties, boolean localized) Deprecated.- Overrides:
evaluate
in classExpression
-
getFilter
Deprecated.- Overrides:
getFilter
in classExpression
-
getFilter
Description copied from class:Expression
Return a PieceFilter using the expression. The default PieceFilter always returns true. Individual subclasses that are capable of selecting pieces MUST override these defaults. Auditing functionality is supplied since creating a filter usually involves evaluating an Expression.- Overrides:
getFilter
in classExpression
- Parameters:
ps
- PropertySource to use as source of filteraudit
- Audit trail to record expression evaluation info in- Returns:
- Created PieceFilter
-
isDynamic
protected boolean isDynamic() -
toBeanShellString
Description copied from class:Expression
Output a BeanShell equivalent of this expression.- Overrides:
toBeanShellString
in classExpression
- Returns:
- BeanShell equivalent
-
instance
-