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 Details

  • Constructor Details

    • PropertyMatchExpression

      public PropertyMatchExpression(String s)
  • Method Details

    • evaluate

      public String evaluate(PropertySource ps, Map<String,​String> properties, boolean localized)
      Description copied from class: Expression
      Each subclass must implement evaluate() to evaluate itself
      Overrides:
      evaluate in class Expression
      Parameters:
      ps - Property Source providing property values
      properties - default property values
      localized - localize property calls?
      Returns:
      evaluated String.
    • getFilter

      public PieceFilter getFilter(PropertySource ps)
      Description copied from class: Expression
      Return a PieceFilter using the expression.
      Overrides:
      getFilter in class Expression
      Parameters:
      ps - PropertySource to use as source of filter
      Returns:
      Created PieceFilter
    • isDynamic

      protected boolean isDynamic()
    • toBeanShellString

      public String toBeanShellString()
      Description copied from class: Expression
      Output a BeanShell equivalent of this expression.
      Overrides:
      toBeanShellString in class Expression
      Returns:
      BeanShell equivalent
    • instance

      public static Expression instance(String s)