All Implemented Interfaces:
Expression

@Exported public class Contains extends PropertyValueComparison
Expression that performs a contains operation when comparing a property
  • Constructor Details

    • Contains

      public Contains(Property property, Object value)
      Constructor
      Parameters:
      property - the property to compare
      value - the value to compare the property against
  • Method Details

    • accept

      public void accept(Visitor visitor)
      Accepts a visitor
      Parameters:
      visitor - the visitor
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • and

      public Expression and(Expression expression)
      Creates an And expression which will be a logical "and" of this expression and the expression passed in as a parameter
      Specified by:
      and in interface Expression
      Parameters:
      expression - the other expression
      Returns:
      the And expression
    • or

      public Expression or(Expression expression)
      Creates an Or expression which will be a logical "or" of this expression and the expression passed in as a parameter
      Specified by:
      or in interface Expression
      Parameters:
      expression - the other expression
      Returns:
      the Or expression
    • not

      public Expression not()
      Creates a Not expression which will be the logical "not" of this epxression
      Specified by:
      not in interface Expression
      Returns:
      the Not expression