Package liquibase

Class ContextExpression


public class ContextExpression extends Object
Encapsulates logic for evaluating if a set of runtime contexts matches a context expression string.
  • Constructor Details

    • ContextExpression

      public ContextExpression(String... contexts)
    • ContextExpression

      public ContextExpression(String contexts)
    • ContextExpression

      public ContextExpression(Collection<String> contexts)
  • Method Details

    • add

      public boolean add(String context)
    • getContexts

      public Set<String> getContexts()
    • toString

      public String toString()
      toString in class Object
    • matches

      public boolean matches(Contexts runtimeContexts)
      Returns true if the passed runtime contexts match this context expression
    • isEmpty

      public boolean isEmpty()
    • matchesAll

      public static boolean matchesAll(Collection<ContextExpression> expressions, Contexts contexts)