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 Detail

      • ContextExpression

        public ContextExpression​(String... contexts)
      • ContextExpression

        public ContextExpression​(String contexts)
    • Method Detail

      • add

        public boolean add​(String context)
      • getContexts

        public Set<String> getContexts()
      • matches

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

        public boolean isEmpty()