Class BeanShellExpression.BshFilter

java.lang.Object
VASSAL.script.expression.BeanShellExpression.BshFilter
All Implemented Interfaces:
PieceFilter
Enclosing class:
BeanShellExpression

public class BeanShellExpression.BshFilter extends Object implements PieceFilter
  • Constructor Details

  • Method Details

    • accept

      @Deprecated(since="2021-06-11") public boolean accept(GamePiece piece)
      Deprecated.
      Description copied from interface: PieceFilter
      Test if a piece matches the filter. This sig should only be used for filters that can not have Expressions as a component of the filter and thus have no Expression Auditing requirementts
      Specified by:
      accept in interface PieceFilter
      Parameters:
      piece - piece
      Returns:
      true if piece match filter
    • accept

      public boolean accept(GamePiece piece, Auditable owner, String fieldKey)
      Description copied from interface: PieceFilter
      Test if a piece matches the filter and provide Expression auditing facilities
      Specified by:
      accept in interface PieceFilter
      Parameters:
      piece - piece to test
      owner - owner of the filter
      fieldKey - EMesage key of the field holding the filter expression
      Returns:
    • accept

      public boolean accept(GamePiece piece, Auditable owner, AuditTrail audit)
      Description copied from interface: PieceFilter
      Test if a piece matches the filter and provide Expression auditing facilities
      Specified by:
      accept in interface PieceFilter
      Parameters:
      piece - piece to test
      owner - owner of the filter
      audit - Audit Trail to record evaluation of the filter
      Returns: